- Migrate from SwiftData to CoreData with CloudKit sync - Add core models: Split, Exercise, Workout, WorkoutLog - Implement tab-based UI: Workout Logs, Splits, Settings - Add SF Symbols picker for split icons - Add exercise picker filtered by split with exclusion of added exercises - Integrate IndieAbout for settings/about section - Add Yams for YAML exercise definition parsing - Include starter exercise libraries (bodyweight, Planet Fitness) - Add Date extensions for formatting (formattedTime, isSameDay) - Format workout date ranges to show time-only for same-day end dates - Add build number update script - Add app icons
24 lines
538 B
Swift
24 lines
538 B
Swift
import Foundation
|
|
|
|
enum WorkoutStatus: String, CaseIterable, Codable {
|
|
case notStarted = "notStarted"
|
|
case inProgress = "inProgress"
|
|
case completed = "completed"
|
|
case skipped = "skipped"
|
|
|
|
var displayName: String {
|
|
switch self {
|
|
case .notStarted:
|
|
return "Not Started"
|
|
case .inProgress:
|
|
return "In Progress"
|
|
case .completed:
|
|
return "Completed"
|
|
case .skipped:
|
|
return "Skipped"
|
|
}
|
|
}
|
|
|
|
var name: String { displayName }
|
|
}
|