add ActiveWorkoutSession logic, refactor Home, add additional sample data, add isDebug
This commit is contained in:
@@ -9,15 +9,21 @@ import Foundation
|
||||
import SwiftUI
|
||||
|
||||
public class Defaults: ObservableObject {
|
||||
@AppStorage("isDebug") public var isDebug = true
|
||||
|
||||
@AppStorage("isFirstAppStart") public var isFirstAppStart = true
|
||||
@AppStorage("isOnboarding") public var isOnboarding = true
|
||||
@AppStorage("isTrainerMode") public var isTrainerMode = false
|
||||
@AppStorage("isWorkingOut") public var isWorkingOut = false
|
||||
|
||||
@AppStorage("userId") public var userId = UUID().uuidString
|
||||
@AppStorage("defaultWorkoutId") public var defaultWorkoutId: String = ""
|
||||
|
||||
@AppStorage("sets") public var sets = 8
|
||||
@AppStorage("reps") public var reps = 8
|
||||
|
||||
@AppStorage("isWorkingOut") public var isWorkingOut = false
|
||||
@AppStorage("activeWorkoutId") public var activeWorkoutId: String?
|
||||
@AppStorage("activeWorkoutSessionId") public var activeWorkoutSessionId: String = ""
|
||||
@AppStorage("activeWorkoutId") public var activeWorkoutId: String = ""
|
||||
|
||||
public static let shared = Defaults()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user