Added the "id" parameter to the initializer of the Transcription model in the Recording package target.
This commit is contained in:
@@ -6,18 +6,23 @@ public struct Transcription: Equatable, Identifiable, Sendable {
|
||||
// MARK: Properties
|
||||
|
||||
/// The unique identifier of the transcription.
|
||||
public let id: UUID = .init()
|
||||
public let id: UUID
|
||||
|
||||
/// The transcribed text of the processed recording.
|
||||
public let text: String
|
||||
|
||||
|
||||
// MARK: Initializers
|
||||
|
||||
/// Creates a transcription with a given text.
|
||||
/// - Parameter text: The transcribed text of the processed recording.
|
||||
///
|
||||
/// - Parameters:
|
||||
/// - id: The unique identifier of the transcription. Defaults to a newly generated identifier.
|
||||
/// - text: The transcribed text of the processed recording.
|
||||
public init(
|
||||
id: UUID = .init(),
|
||||
text: String
|
||||
) {
|
||||
self.id = id
|
||||
self.text = text
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user