Skip to content

Instantly share code, notes, and snippets.

@azamsharp
Created February 19, 2018 17:14
Show Gist options
  • Save azamsharp/fca52117254b78c765243fab00e15092 to your computer and use it in GitHub Desktop.
Save azamsharp/fca52117254b78c765243fab00e15092 to your computer and use it in GitHub Desktop.
let addFloodButton = UIButton.buttonForAddingAnnotation()
.addToParent(view: self.view)
.centerX(in: self.view)
.bottomMargin(from: self.view, margin: -40)
.setWidth(width: 75)
.setHeight(height: 75) as! UIButton
addFloodButton.addTarget(self, action: #selector(addFloodAnnotationButtonPressed), for: .touchUpInside)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment