Created
February 19, 2018 17:09
-
-
Save azamsharp/a494087f47acf5fedfb8015cc7411c71 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import UIKit | |
extension UIButton { | |
static func buttonForAddingAnnotation() -> UIButton { | |
let addFloodButton = UIButton(frame: CGRect.zero) | |
addFloodButton.translatesAutoresizingMaskIntoConstraints = false | |
addFloodButton.setImage(UIImage(named: "plus-image"), for: .normal) | |
return addFloodButton | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment