Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,7 @@ buildcache
App Thinning Size Report.txt
app-thinning.plist
*.dmg

# VSCode
.vscode
buildServer.json
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

# Upcoming

### ✅ Added
- Make `VoiceRecordingButton` public [#658](https://github.com/GetStream/stream-chat-swiftui/pull/658)
### 🐞 Fixed
- Fix message long press taking too much time to show actions [#648](https://github.com/GetStream/stream-chat-swiftui/pull/648)
### 🔄 Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ public struct TrailingComposerView: View {
}
}

struct VoiceRecordingButton: View {
/// The button responsible to start voice recording.
public struct VoiceRecordingButton: View {
@Injected(\.colors) var colors
@Injected(\.utils) var utils

Expand All @@ -47,7 +48,11 @@ struct VoiceRecordingButton: View {
@State private var longPressed = false
@State private var longPressStarted: Date?

var body: some View {
public init(viewModel: MessageComposerViewModel) {
self.viewModel = viewModel
}

public var body: some View {
Image(systemName: "mic")
.foregroundColor(Color(colors.textLowEmphasis))
.gesture(
Expand Down
Loading