Last active
May 9, 2020 18:19
-
-
Save GabrielSilveiraa/bf2dd3f418940ac928b7c44df7d0e6b9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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