Skip to content

Instantly share code, notes, and snippets.

@petrosDemetrakopoulos
Created February 15, 2021 08:31
Show Gist options
  • Save petrosDemetrakopoulos/d9ac4add30167f189c85f925ac3d1f68 to your computer and use it in GitHub Desktop.
Save petrosDemetrakopoulos/d9ac4add30167f189c85f925ac3d1f68 to your computer and use it in GitHub Desktop.
State variables and half sector constant
@State private var isAnimating = false
@State private var spinDegrees = 0.0
@State private var rand = 0.0
@State private var newAngle = 0.0
let halfSector = 360.0 / 37.0 / 2.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment