Skip to content

Instantly share code, notes, and snippets.

@chetem
Last active July 19, 2016 10:05
Show Gist options
  • Save chetem/8c9a1cd311e24985d3fad636f86e8c2c to your computer and use it in GitHub Desktop.
Save chetem/8c9a1cd311e24985d3fad636f86e8c2c to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment