Created
December 9, 2017 21:20
-
-
Save srdanrasic/c1269baec6aa50dd9dc45c4b7b3cbc2c 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
| public struct Style<View: UIView> { | |
| public let style: (View) -> Void | |
| public init(_ style: @escaping (View) -> Void) { | |
| self.style = style | |
| } | |
| public func apply(to view: View) { | |
| style(view) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment