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
91
91
App Thinning Size Report.txt
92
92
app-thinning.plist
93
93
* .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/).
3
3
4
4
# Upcoming
5
5
6
+ ### ✅ Added
7
+ - Make ` VoiceRecordingButton ` public [ #658 ] ( https://github.com/GetStream/stream-chat-swiftui/pull/658 )
6
8
### 🐞 Fixed
7
9
- Fix message long press taking too much time to show actions [ #648 ] ( https://github.com/GetStream/stream-chat-swiftui/pull/648 )
8
10
### 🔄 Changed
Original file line number Diff line number Diff line change @@ -38,7 +38,8 @@ public struct TrailingComposerView: View {
38
38
}
39
39
}
40
40
41
- struct VoiceRecordingButton : View {
41
+ /// The button responsible to start voice recording.
42
+ public struct VoiceRecordingButton : View {
42
43
@Injected ( \. colors) var colors
43
44
@Injected ( \. utils) var utils
44
45
@@ -47,7 +48,11 @@ struct VoiceRecordingButton: View {
47
48
@State private var longPressed = false
48
49
@State private var longPressStarted : Date ?
49
50
50
- var body : some View {
51
+ public init ( viewModel: MessageComposerViewModel ) {
52
+ self . viewModel = viewModel
53
+ }
54
+
55
+ public var body : some View {
51
56
Image ( systemName: " mic " )
52
57
. foregroundColor ( Color ( colors. textLowEmphasis) )
53
58
. gesture (
You can’t perform that action at this time.
0 commit comments