This commit is contained in:
Trey t
2023-07-07 14:02:50 -05:00
parent 4fc5127011
commit f7ab828b28
9 changed files with 3085 additions and 200 deletions

View File

@@ -9,7 +9,7 @@ import Foundation
class PreviewData {
class func workout() -> Workout {
let filepath = Bundle.main.path(forResource: "WorkoutOne", ofType: "json")!
let filepath = Bundle.main.path(forResource: "WorkoutDetail", ofType: "json")!
let data = try! Data(NSData(contentsOfFile: filepath))
let workout = try! JSONDecoder().decode(Workout.self, from: data)
return workout