wip
This commit is contained in:
@ -4,10 +4,12 @@ import SwiftData
|
||||
@Model
|
||||
final class Exercise {
|
||||
var name: String = ""
|
||||
var loadType: Int = LoadType.weight.rawValue
|
||||
var order: Int = 0
|
||||
var sets: Int = 0
|
||||
var reps: Int = 0
|
||||
var weight: Int = 0
|
||||
var duration: Date = Date.distantPast
|
||||
var weightLastUpdated: Date = Date()
|
||||
var weightReminderTimeIntervalWeeks: Int = 2
|
||||
|
||||
@ -24,3 +26,18 @@ final class Exercise {
|
||||
self.weightReminderTimeIntervalWeeks = weightReminderTimeIntervalWeeks
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
enum LoadType: Int, CaseIterable {
|
||||
case none = 0
|
||||
case weight = 1
|
||||
case duration = 2
|
||||
|
||||
var name: String {
|
||||
switch self {
|
||||
case .none: "None"
|
||||
case .weight: "Weight"
|
||||
case .duration: "Duration"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
10
Workouts/Models/ExerciseType.swift
Normal file
10
Workouts/Models/ExerciseType.swift
Normal file
@ -0,0 +1,10 @@
|
||||
//
|
||||
// ExerciseType.swift
|
||||
// Workouts
|
||||
//
|
||||
// Created by rzen on 7/26/25 at 9:16 AM.
|
||||
//
|
||||
// Copyright 2025 Rouslan Zenetl. All Rights Reserved.
|
||||
//
|
||||
|
||||
|
Reference in New Issue
Block a user