Created
October 29, 2017 14:50
-
-
Save nathangitter/2418bc46f7c0dfd0a21757b2e1b39735 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
@IBOutlet weak var myCustomView: UIView! { | |
didSet { | |
view.backgroundColor = UIColor.blue | |
view.layer.cornerRadius = myCustomView.bounds.width / 2 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@IBOutlet weak var myCustomView: UIView! {
didSet {
myCustomView.backgroundColor = UIColor.blue
myCustomView.layer.cornerRadius = myCustomView.bounds.width / 2
}
}