This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"sportspeople": [ | |
{ | |
"first_name": "Stephen", | |
"full_name": "Stephen Curry", | |
"id": 1, | |
"last_name": "Curry", | |
"points": 47.94303797468354, | |
"profile_picture_url": "https://d17odppiik753x.cloudfront.net/playerimages/nba/9524.png" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class ViewController: UIViewController { | |
lazy var circleLayer: CAShapeLayer = { | |
let layer = CAShapeLayer() | |
layer.frame = self.circleView.bounds | |
let bezierPath = UIBezierPath(ovalInRect: layer.bounds) | |
self.rotate(bezierPath: bezierPath, degrees: -90.0) |