Single responsability
JAIRMG opened this issue · comments
I think that saving the user data, for example the onBoardingData
should be responsability of the ViewModel, what do you think?. Nice project btw!
What do you mean by onboarding data? In the setup flow the ViewModel saves the RSS source the user selects: https://github.com/igorkulman/iOSSampleApp/blob/master/Sources/iOSSampleApp/Scenarios/Setup/ViewModels/SourceSelectionViewModel.swift#L80
The OnBoardingCoordinator
is saving the settings and the SetOptionsViewModel
is practically empty, that's what I mean. This self.dataManager.set(key: SettingKey.onBoardingData, value: data)
I think is a ViewModel responsability
There is no OnBoardingCoordinator
in this code base.