Skip to content

Instantly share code, notes, and snippets.

@chenr2
Created July 22, 2015 19:55
Show Gist options
  • Save chenr2/46985ba4f9f9215c8396 to your computer and use it in GitHub Desktop.
Save chenr2/46985ba4f9f9215c8396 to your computer and use it in GitHub Desktop.

How to make a view circular

imageView.layer.cornerRadius = imageView.bounds.size.width / 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment