This commit is contained in:
Trey t
2023-06-28 10:26:29 -05:00
parent 3391606ff3
commit 71dedca94e
5 changed files with 26 additions and 11 deletions

View File

@@ -7,7 +7,7 @@
import Foundation
struct ExerciseElement: Codable {
struct ExerciseElement: Codable, Equatable {
let workout: Int
let exercise: ExerciseExercise
let weight: Int?

View File

@@ -7,7 +7,11 @@
import Foundation
struct Workout: Codable, Identifiable {
struct Workout: Codable, Identifiable, Equatable {
static func == (lhs: Workout, rhs: Workout) -> Bool {
lhs.id == rhs.id
}
let id: Int
let name: String
let description: String?