Created
October 29, 2017 14:49
-
-
Save nathangitter/25cd5b1f13da9cee3be5d88099c5939f 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
lazy var myCustomView: UIView = { | |
let view = UIView() | |
view.backgroundColor = UIColor.blue | |
view.layer.cornerRadius = myCustomView.bounds.width / 2 | |
return view | |
}() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
didn't work for me.
could you tell me how its work ?