Last active
          February 7, 2019 23:33 
        
      - 
      
- 
        Save sisoje/c4c0af577fadf38d0c6a9056753158b5 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
    
  
  
    
  | infix operator ~: MultiplicationPrecedence | |
| @discardableResult | |
| func ~<U: AnyObject>(object: U, block: (U) -> Void) -> U { | |
| block(object) | |
| return object | |
| } | |
| let titleLabel = UILabel() ~ { | |
| $0.font = .systemFont(ofSize: 22) | |
| $0.textColor = .red | |
| $0.text = "WELCOME" | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment