Skip to content

Instantly share code, notes, and snippets.

@andrewdolce
Last active March 17, 2016 01:28
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 andrewdolce/78b6fe979e7fc77a716e to your computer and use it in GitHub Desktop.
Save andrewdolce/78b6fe979e7fc77a716e to your computer and use it in GitHub Desktop.
Social Tunes Sharer Code Sample: Rounding Corners
// From Andrew's code
override func viewDidLayoutSubviews() {
let halfHeight = CGRectGetHeight(shareContainerView.bounds) / 2;
shareContainerView.layer.cornerRadius = halfHeight
topView.layer.cornerRadius = halfHeight
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment