Skip to content

Instantly share code, notes, and snippets.

@stevencurtis
Created May 9, 2020 15:05
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 stevencurtis/a778daa7af6fc79c4eba7b5f2589f351 to your computer and use it in GitHub Desktop.
Save stevencurtis/a778daa7af6fc79c4eba7b5f2589f351 to your computer and use it in GitHub Desktop.
UpdateCornersViewcornerRadius
class UpdateCornersView: UIView {
@IBInspectable var cornerRadius: CGFloat = 0 {
didSet {
layer.cornerRadius = cornerRadius
layer.masksToBounds = cornerRadius > 0
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment