create ER diagram, refactor to conform to diagram, simplify session management
This commit is contained in:
@@ -22,8 +22,9 @@ public class Defaults: ObservableObject {
|
||||
@AppStorage("sets") public var sets = 8
|
||||
@AppStorage("reps") public var reps = 8
|
||||
|
||||
@AppStorage("activeWorkoutSessionId") public var activeWorkoutSessionId: String = ""
|
||||
@AppStorage("activeWorkoutId") public var activeWorkoutId: String = ""
|
||||
// TODO: Maybe store session and workout ids to recover from app close
|
||||
// @AppStorage("activeWorkoutSessionId") public var activeWorkoutSessionId: String = ""
|
||||
// @AppStorage("activeWorkoutId") public var activeWorkoutId: String = ""
|
||||
|
||||
public static let shared = Defaults()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user