Skip to content

Commit 894b244

Browse files
Public init for AudioRecordingInfo (#547)
1 parent e7ddb3d commit 894b244

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Sources/StreamChatSwiftUI/ChatChannel/Composer/ComposerModels.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,10 @@ public struct AddedVoiceRecording: Identifiable, Equatable {
8585
public let duration: TimeInterval
8686
/// The waveform of the recording.
8787
public let waveform: [Float]
88+
89+
public init(url: URL, duration: TimeInterval, waveform: [Float]) {
90+
self.url = url
91+
self.duration = duration
92+
self.waveform = waveform
93+
}
8894
}

Sources/StreamChatSwiftUI/ChatChannelList/MoreChannelActionsViewModel.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public struct ConfirmationPopup {
128128
self.buttonTitle = buttonTitle
129129
}
130130

131-
let title: String
132-
let message: String?
133-
let buttonTitle: String
131+
public let title: String
132+
public let message: String?
133+
public let buttonTitle: String
134134
}

0 commit comments

Comments
 (0)