This commit is contained in:
Trey t
2023-06-14 21:26:50 -05:00
parent 6ee4a9420b
commit bf58ca5167
16 changed files with 1133 additions and 97 deletions

View File

@@ -0,0 +1,17 @@
//
// PreviewWorkout.swift
// Werkout_ios
//
// Created by Trey Tartt on 6/14/23.
//
import Foundation
class PreviewWorkout {
class func workout() -> Workout {
let filepath = Bundle.main.path(forResource: "WorkoutOne", ofType: "json")!
let data = try! Data(NSData(contentsOfFile: filepath))
let workout = try! JSONDecoder().decode(Workout.self, from: data)
return workout
}
}