Skip to content

Instantly share code, notes, and snippets.

@azamsharp
Created October 23, 2017 05:01
Show Gist options
  • Save azamsharp/af874d67f579faba6be3ad08e1d5f1b8 to your computer and use it in GitHub Desktop.
Save azamsharp/af874d67f579faba6be3ad08e1d5f1b8 to your computer and use it in GitHub Desktop.
@IBOutlet weak var titleTextField :BindingTextField! {
didSet {
titleTextField.bind { self.viewModel.title.value = $0 }
}
}
@IBOutlet weak var descriptionTextField :BindingTextField! {
didSet {
descriptionTextField.bind { self.viewModel.description.value = $0 }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment