Last active
July 2, 2018 10:34
-
-
Save vialyx/e2268863eb9ccdec7cd9cd7a920a0d24 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
let container = RoundContainer() | |
container.backgroundColor = .blue | |
container.cornerRadius = 40 | |
container.translatesAutoresizingMaskIntoConstraints = false | |
roundContainer = container | |
view.addSubview(container) | |
NSLayoutConstraint.activate([ | |
container.centerXAnchor.constraint(equalTo: view.centerXAnchor), | |
container.topAnchor.constraint(equalTo: label.bottomAnchor) | |
]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment