init
This commit is contained in:
17
Werkout_ios/Preview Content/PreviewWorkout.swift
Normal file
17
Werkout_ios/Preview Content/PreviewWorkout.swift
Normal 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
|
||||
}
|
||||
}
|
||||
BIN
Werkout_ios/Preview Content/Straight_Leg_Sit_Up.mp4
Normal file
BIN
Werkout_ios/Preview Content/Straight_Leg_Sit_Up.mp4
Normal file
Binary file not shown.
Reference in New Issue
Block a user