Closed gcharita closed 1 year ago
as much as I recommend leaving SwiftUI code paths in prod, I don't usually do the same with hosts since, too often it's extra jumps to support, and most of the time I just wrap the stuff I want to work on and make a separate commit out of it.
If you have an idea that would make your workflow easier though and wanted to put up a PR I'd be open to it, as long as it doesn't force anyone
I have a case where my own view controller override properties like
supportedInterfaceOrientations
andpreferredStatusBarStyle
ofUIViewController
. (also my view controller implements a generic protocol)So instead of adding Inject as SPM dependency, I added all the files in my project and made a subclass of
Inject.ViewControllerHost
like this:Is there any consideration to make
Inject.ViewControllerHost
open for subclassing from other modules?