StatefulViewManager is a simple library that will make handling various states easy.
UIViewController
to stateful view manager.
This can be done on viewDidLoad()
viewManager.attach(to: self)
.idle
, loading
, .loaded
, .error
, .empty
and .custom(key: String)
You do not have to register controllers for all of them unless you're going to use them
let myEmptyController = UIViewController()
viewManager.bind(myEmptyController: emptyController, to: .empty)
let authenticationController = AuthController()
viewManager.bind(authenticationController, to: .custom("auth")
viewManager.show(.empty)
viewManager.show(.custom("auth"))
✌️
link |
Stars: 1 |
Last commit: 4 years ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics