Created
January 24, 2017 08:11
-
-
Save fozoglu/7e291b7e408e4f6eaf8b1a2eba5c3fc3 to your computer and use it in GitHub Desktop.
borderUIColor - swift 3 example
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
extension CALayer { | |
var borderUIColor: UIColor { | |
set { | |
self.borderColor = newValue.cgColor | |
} | |
get { | |
return UIColor(cgColor: self.borderColor!) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment