Skip to content

Instantly share code, notes, and snippets.

@andrewdolce
Created March 17, 2016 01:42
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/e7432a02fe1b6c14963d to your computer and use it in GitHub Desktop.
Save andrewdolce/e7432a02fe1b6c14963d to your computer and use it in GitHub Desktop.
Social Tunes Sharer Code Sample: Contraints using Cartography
// From Paul's code
constrain(underButtonView, self) { (subButtons, view) -> () in
subButtons.height == view.height
subButtons.width == view.width
subButtons.center == view.center
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment