Provident
is a view controller provider framework that uses inversion of control to simplify view controller creation.
UIStoryboard
to create the view controllerView
in a UIHostingController
If a view controller is reimplemented as a different "flavour" (e.g. refactored from a Storyboard to SwiftUI), all calling code must be changed accordingly. Essentially, some of the internals of the view controller are exposed, reducing encapsualtion.
Provident
uses the concept of a ViewControllerProvider
to solve this, moving all of the logic for view controller creation to a single place.
link |
Stars: 0 |
Last commit: 5 days ago |
Changes in Registry
:
func createViewController(from token: T, context: C) -> ViewController?
to
func createViewController(token: T, context: C) throws -> ViewController
Adds a backward compat-like Registry
extension with:
func findViewController(token: T, context: C) -> ViewController?
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics