Skip to content

Instantly share code, notes, and snippets.

@iby
Created September 30, 2018 19:33
Show Gist options
  • Save iby/d153c8d36d25942a1d149b2a91072a0f to your computer and use it in GitHub Desktop.
Save iby/d153c8d36d25942a1d149b2a91072a0f to your computer and use it in GitHub Desktop.
let fooOne: Foo = Foo()
let fooTwo: Foo = Foo()
fooOne.reactive.signal.bar.observeValues({ Swift.print($0) })
fooOne.reactive.bind.bar <~ fooTwo.reactive.signal.bar
fooOne.bar = "Such b-a-r!"
fooTwo.bar = "Very BAR!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment