Skip to content

Instantly share code, notes, and snippets.

@FranDepascuali
Created January 26, 2016 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FranDepascuali/932ce3289abff4393282 to your computer and use it in GitHub Desktop.
Save FranDepascuali/932ce3289abff4393282 to your computer and use it in GitHub Desktop.
public protocol ViewModelBindable: class {
typealias ViewModel
var viewModel: ViewModel? { get set }
func bindViewModel(viewModel: ViewModel)
func unbindViewModel(viewModel: ViewModel)
func shouldBindViewModel() -> Bool
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment