This commit is contained in:
2025-07-18 17:41:23 -04:00
parent 66f257609f
commit 34942bfc48
9 changed files with 337 additions and 111 deletions

View File

@ -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 {