Created
September 3, 2018 21:26
-
-
Save d-date/01075ede6072679635c54b5fae89e739 to your computer and use it in GitHub Desktop.
We can apply style like this. Very simple implementation! #CodePiece #tryswiftnyc
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 labelColorStyle = { set(\UILabel.textColor, $0) } | |
let primaryLabelStyle = labelColorStyle(UIColor.green) | |
let label = UILabel() |> primaryLabelStyle |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment