Skip to content

Instantly share code, notes, and snippets.

@bergusman
Created August 22, 2016 11:58
Show Gist options
  • Save bergusman/d81b1852eaf16b688f6eb472c1943bd3 to your computer and use it in GitHub Desktop.
Save bergusman/d81b1852eaf16b688f6eb472c1943bd3 to your computer and use it in GitHub Desktop.
Add Pass Button
private func setupAddPassButton() {
let button = PKAddPassButton(style: .BlackOutline)
button.addTarget(self, action: #selector(passTouchUpInside), forControlEvents: .TouchUpInside)
button.translatesAutoresizingMaskIntoConstraints = false
view.addSubview(button)
button.centerXAnchor.constraintEqualToAnchor(view.centerXAnchor).active = true
button.centerYAnchor.constraintEqualToAnchor(view.centerYAnchor).active = true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment