Skip to content

Instantly share code, notes, and snippets.

@sergdort
Created December 17, 2015 14:24
Show Gist options
  • Save sergdort/f57d495be463d41960f5 to your computer and use it in GitHub Desktop.
Save sergdort/f57d495be463d41960f5 to your computer and use it in GitHub Desktop.
// 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