diff --git a/Sources/StreamChatSwiftUI/ChatChannel/MessageList/AsyncVoiceMessages/WaveformView.swift b/Sources/StreamChatSwiftUI/ChatChannel/MessageList/AsyncVoiceMessages/WaveformView.swift index fc7ee802..1541f3bb 100644 --- a/Sources/StreamChatSwiftUI/ChatChannel/MessageList/AsyncVoiceMessages/WaveformView.swift +++ b/Sources/StreamChatSwiftUI/ChatChannel/MessageList/AsyncVoiceMessages/WaveformView.swift @@ -12,8 +12,8 @@ open class WaveformView: UIView { @Injected(\.images) var images - var onSliderChanged: ((TimeInterval) -> Void)? - var onSliderTapped: (() -> Void)? + open var onSliderChanged: ((TimeInterval) -> Void)? + open var onSliderTapped: (() -> Void)? public struct Content: Equatable { /// When set to `true` the waveform will be updating with the data live (scrolling to the trailing side @@ -49,7 +49,7 @@ open class WaveformView: UIView { } } - var content: Content = .initial { + open var content: Content = .initial { didSet { updateContent() } }