File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed
Sources/StreamChatSwiftUI/ChatChannel/Composer Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -91,3 +91,7 @@ buildcache
9191App Thinning Size Report.txt
9292app-thinning.plist
9393* .dmg
94+
95+ # VSCode
96+ .vscode
97+ buildServer.json
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
33
44# Upcoming
55
6+ ### β
Added
7+ - Make ` VoiceRecordingButton ` public [ #658 ] ( https://github.com/GetStream/stream-chat-swiftui/pull/658 )
68### π Fixed
79- Fix message long press taking too much time to show actions [ #648 ] ( https://github.com/GetStream/stream-chat-swiftui/pull/648 )
810### π Changed
Original file line number Diff line number Diff 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,11 @@ struct VoiceRecordingButton: View {
4748 @State private var longPressed = false
4849 @State private var longPressStarted : Date ?
4950
50- var body : some View {
51+ public init ( viewModel: MessageComposerViewModel ) {
52+ self . viewModel = viewModel
53+ }
54+
55+ public var body : some View {
5156 Image ( systemName: " mic " )
5257 . foregroundColor ( Color ( colors. textLowEmphasis) )
5358 . gesture (
You canβt perform that action at this time.
0 commit comments