WIP
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
import Foundation
|
||||
|
||||
struct ExerciseElement: Codable {
|
||||
struct ExerciseElement: Codable, Equatable {
|
||||
let workout: Int
|
||||
let exercise: ExerciseExercise
|
||||
let weight: Int?
|
||||
|
||||
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user