Skip to content

Instantly share code, notes, and snippets.

@hungtruong
Created April 7, 2019 16:25
Show Gist options
  • Save hungtruong/55e92115f993221693f9040431ee39fe to your computer and use it in GitHub Desktop.
Save hungtruong/55e92115f993221693f9040431ee39fe to your computer and use it in GitHub Desktop.
enum WorkoutSegment {
case warmup(duration: TimeInterval, powerLow: Double, powerHigh: Double)
case intervals(reps: Int, onDuration: TimeInterval, offDuration: TimeInterval, onPower: Double,
offPower: Double)
case steady(duration: TimeInterval, power: Double)
case cooldown(duration: TimeInterval, powerLow: Double, powerHigh: Double)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment