-
-
Save Pasanpr/e6244a2a35c066132c7300ea8372b39a to your computer and use it in GitHub Desktop.
This file contains 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
view.addSubview(firstChoiceButton) | |
firstChoiceButton.translatesAutoresizingMaskIntoConstraints = false | |
NSLayoutConstraint.activate([ | |
firstChoiceButton.centerXAnchor.constraint(equalTo: view.centerXAnchor), | |
firstChoiceButton.bottomAnchor.constraint(equalTo: view.bottomAnchor, constant: -80.0) | |
]) | |
view.addSubview(secondChoiceButton) | |
secondChoiceButton.translatesAutoresizingMaskIntoConstraints = false | |
NSLayoutConstraint.activate([ | |
secondChoiceButton.centerXAnchor.constraint(equalTo: view.centerXAnchor), | |
secondChoiceButton.bottomAnchor.constraint(equalTo: view.bottomAnchor, constant: -32) | |
]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment