Skip to content

Instantly share code, notes, and snippets.

@GabrielSilveiraa
Last active May 9, 2020 18:19
Show Gist options
  • Save GabrielSilveiraa/bf2dd3f418940ac928b7c44df7d0e6b9 to your computer and use it in GitHub Desktop.
Save GabrielSilveiraa/bf2dd3f418940ac928b7c44df7d0e6b9 to your computer and use it in GitHub Desktop.
//https://medium.com/blablacar-tech/rxswift-mvvm-66827b8b3f10
protocol ViewModel {
associatedtype Input
associatedtype Output
func transform(input: Input) -> Output
}
class ViewModelExample: ViewModel {
struct Output {}
struct Input { }
func transform(input: Input) -> Output {
return Output()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment