wip
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
import Foundation
|
||||
import SwiftData
|
||||
import SwiftUI
|
||||
import UniformTypeIdentifiers
|
||||
|
||||
@Model
|
||||
final class Split {
|
||||
@ -53,6 +54,16 @@ extension Split: EditableEntity {
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - Identifiable Conformance
|
||||
|
||||
extension Split: Identifiable {
|
||||
public var id: String {
|
||||
// Use the name as a unique identifier for the split
|
||||
// This is sufficient for UI purposes
|
||||
return self.name
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - Private Form View
|
||||
|
||||
fileprivate struct SplitFormView: View {
|
||||
|
Reference in New Issue
Block a user