Skip to content

Instantly share code, notes, and snippets.

@alsedi
Created December 30, 2016 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alsedi/a56ed22def2c299783ca517e12d09b53 to your computer and use it in GitHub Desktop.
Save alsedi/a56ed22def2c299783ca517e12d09b53 to your computer and use it in GitHub Desktop.
func updateIndicator(with percent: Double) {
let shortestSide = min(view.frame.size.width, view.frame.size.height)
let strokeWidth: CGFloat = 40.0
let frame = CGRect(x: 0, y: 0, width: shortestSide - strokeWidth, height: shortestSide - strokeWidth)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment