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
the implementation is created on the main target.
and then from the main target, I pass around the implementation of HomeViewControllerFactory to HomeViewController (located in HomeImpl module.)
I wonder if I can use this library to simplify this, so I don't have to pass around the factory implementation to leaf view controllers.
so far here what I've done
in HomeInterface module
extensionViewControllerFactoryKey:DependencyKey{publicstaticvarliveValue=HomeViewControllerFactory(
makeProductViewController:{ id inreturnProductViewController(id: id))}
is it recommended to do this using the library?
I have still no idea how to pass the reducer (example: StoreOf<ProductDetail>) using the pattern above, so I pass the id instead.
because I put ProductDetailReducer in ProductImpl module, the HomeViewControllerFactory doesn't know anything about it.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there,
currently I am using factory like this to pass around view controller
in
HomeInterface
modulethe implementation is created on the main target.
and then from the main target, I pass around the implementation of
HomeViewControllerFactory
toHomeViewController
(located inHomeImpl
module.)I wonder if I can use this library to simplify this, so I don't have to pass around the factory implementation to leaf view controllers.
so far here what I've done
in
HomeInterface
modulein main target
is it recommended to do this using the library?
I have still no idea how to pass the reducer (example:
StoreOf<ProductDetail>
) using the pattern above, so I pass theid
instead.because I put
ProductDetailReducer
inProductImpl
module, theHomeViewControllerFactory
doesn't know anything about it.regards.
Beta Was this translation helpful? Give feedback.
All reactions