Perform this workout on
Fitloop: Android App | iPhone App
- Make sure your diet is in check.
- Check What routine should I do? to make sure this routine is right for you.
- See also: Learn how to make quality goals.
| import SwiftUI | |
| struct ContentView: View { | |
| @State var start = Date() | |
| var body: some View { | |
| TimelineView(.animation) { context in | |
| let time = context.date.timeIntervalSince(start) / 120 | |
| let rotation = 0.8 + 0.2 * abs((cos(.pi * time) + 1.0) / 2.0) | |
| Canvas { context, size in |