Skip to content

Commit d572cb1

Browse files
Expose waveform properties as open (#539)
1 parent fa94428 commit d572cb1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Sources/StreamChatSwiftUI/ChatChannel/MessageList/AsyncVoiceMessages/WaveformView.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ open class WaveformView: UIView {
1212

1313
@Injected(\.images) var images
1414

15-
var onSliderChanged: ((TimeInterval) -> Void)?
16-
var onSliderTapped: (() -> Void)?
15+
open var onSliderChanged: ((TimeInterval) -> Void)?
16+
open var onSliderTapped: (() -> Void)?
1717

1818
public struct Content: Equatable {
1919
/// 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 {
4949
}
5050
}
5151

52-
var content: Content = .initial {
52+
open var content: Content = .initial {
5353
didSet { updateContent() }
5454
}
5555

@@ -69,10 +69,10 @@ open class WaveformView: UIView {
6969

7070
// MARK: - UI Components
7171

72-
open private(set) lazy var audioVisualizationView: AudioVisualizationView = .init()
72+
open lazy var audioVisualizationView: AudioVisualizationView = .init()
7373
.withoutAutoresizingMaskConstraints
7474

75-
open private(set) lazy var slider: UISlider = .init()
75+
open lazy var slider: UISlider = .init()
7676
.withoutAutoresizingMaskConstraints
7777

7878
// MARK: - UI Lifecycle

0 commit comments

Comments
 (0)