Skip to content

Instantly share code, notes, and snippets.

@IsaAliev
Last active November 2, 2019 10:06
Show Gist options
  • Save IsaAliev/310308c3a7f7b98d63911ff417dda3bf to your computer and use it in GitHub Desktop.
Save IsaAliev/310308c3a7f7b98d63911ff417dda3bf to your computer and use it in GitHub Desktop.
import Foundation
import Bond
class ViewModel {
let name = Observable<String?>(nil)
let greeting = Observable<String?>(nil)
func sayHello() {
greeting.value = "Hello, \(name.value ?? "")"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment