Skip to content

Instantly share code, notes, and snippets.

View chetem's full-sized avatar

Chris Hetem chetem

  • Mount Maunganui, NZ
View GitHub Profile
let layer = CAShapeLayer
layer.path = UIBezierPath(roundedRect: CGRect(x:0, y: 0,width: view.frame.width, height: view.frame.height), byRoundingCorners:[ .BottomRight, .BottomLeft], cornerRadii: CGSize(width: 10, height: 10)).CGPath
view.layer = layer
view.layer.cornerRadius = 10