Skip to content

Instantly share code, notes, and snippets.

View joshheald's full-sized avatar

Josh Heald joshheald

View GitHub Profile
{
"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"
},
@joshheald
joshheald / CirclesViewController.swift
Last active June 19, 2016 20:36
A simple circle drawing/erasing view
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)