Created
December 17, 2015 14:24
-
-
Save sergdort/f57d495be463d41960f5 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
// One way binding operators | |
func <~ <T>(property: AnyObserver<T>, variable: Variable<T>) -> Disposable { | |
return variable | |
.bindTo(property) | |
} | |
func ~> <T>(variable: Variable<T>, property: AnyObserver<T>) -> Disposable { | |
return variable | |
.bindTo(property) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment