You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Look how LoginViewModel conforms to 3 protocols. And when you access its input or output properties, you are constrained to only LoginViewModelInputs and LoginViewModelOutputs
The text was updated successfully, but these errors were encountered:
This is a very nifty trick from ios-oss which was built around MVVM pattern. It uses protocol to define input and output, and a container protocol to contain them. Take https://github.com/kickstarter/ios-oss/blob/1f5643f6a769995ccd1bb3826699745e64597ab7/Library/ViewModels/LoginViewModel.swift for example
Look how
LoginViewModel
conforms to 3 protocols. And when you access itsinput
oroutput
properties, you are constrained to onlyLoginViewModelInputs
andLoginViewModelOutputs
The text was updated successfully, but these errors were encountered: