Apr 11, 2022
Hello Varsanyi, thank you for reading.
I don't have a demo example for that, but:
1) For injecting ViewModels I'd suggest providing a ViewModelStoreOwner from your dagger component/scope
2) Using fragments you could create a DaggerFragmentFactory to easily instantiate your fragments consuming a provider map from the Dagger graph which contains the mapping from the fragment class to its provider.
Hope I've been helpful