Skip to content

Commit 9de6de3

Browse files
committed
Make VoiceRecordingButton public
1 parent 7fef385 commit 9de6de3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Sources/StreamChatSwiftUI/ChatChannel/Composer/TrailingComposerView.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ public struct TrailingComposerView: View {
3838
}
3939
}
4040

41-
struct VoiceRecordingButton: View {
41+
/// The button responsible to start voice recording.
42+
public struct VoiceRecordingButton: View {
4243
@Injected(\.colors) var colors
4344
@Injected(\.utils) var utils
4445

@@ -47,7 +48,7 @@ struct VoiceRecordingButton: View {
4748
@State private var longPressed = false
4849
@State private var longPressStarted: Date?
4950

50-
var body: some View {
51+
public var body: some View {
5152
Image(systemName: "mic")
5253
.foregroundColor(Color(colors.textLowEmphasis))
5354
.gesture(

0 commit comments

Comments
 (0)