-
I've reviewed a lot of open source projects using Factory. None of them register a SwiftUI view. Is there any reason for this?Generally, repositories and services are registered. Do you have a personal recommendation regarding this? For example, is there a problem in using it like this?
|
Beta Was this translation helpful? Give feedback.
Answered by
hmlongco
Feb 26, 2023
Replies: 1 comment
-
Factory is used in SwiftUI to provide services to views and view models. I wouldn't recommend creating views with it, especially considering how often SwiftUI rebuilds and diff's the view tree in response to state changes. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
hmlongco
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Factory is used in SwiftUI to provide services to views and view models. I wouldn't recommend creating views with it, especially considering how often SwiftUI rebuilds and diff's the view tree in response to state changes.