Skip to content

Commit

Permalink
Public init for AudioRecordingInfo (#547)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinmitrevski authored Jul 16, 2024
1 parent e7ddb3d commit 894b244
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,10 @@ public struct AddedVoiceRecording: Identifiable, Equatable {
public let duration: TimeInterval
/// The waveform of the recording.
public let waveform: [Float]

public init(url: URL, duration: TimeInterval, waveform: [Float]) {
self.url = url
self.duration = duration
self.waveform = waveform
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public struct ConfirmationPopup {
self.buttonTitle = buttonTitle
}

let title: String
let message: String?
let buttonTitle: String
public let title: String
public let message: String?
public let buttonTitle: String
}

0 comments on commit 894b244

Please sign in to comment.