RxController
RxController copied to clipboard
RxController storyboard support
Sorry for disturbing you but this is really urgent for me. Unfortunately I have just now seen your suggestion about Snapkit and I already completed the storyboards.
It is very important for me that how can I initialize my viewcontrollers using storyboards? Is it possible?
Please let me know as soon as possible. Thank you so much!
RxViewController and RxViewModel based on generic class, I do not know how to set a class in the storyboard with such a style ViewController<ViewModel>.
Maybe, xib can be supported
Without generic class, it is possible. Set view model(an IUO property), after initialization of the view controller.
Thanks for your quick return and it is very good to hear that I don't have to give up on RxController. But I couldn't make it:( How can I define viewmodel for viewcontroller without using generic class? And also navigation ? Could you send me a sample code/url or more detail please?
With RxController, using storyboard directly is not allowed. Maybe, you can fork it and remove the generic class. Without generic class, you can write as the following
class ViewController {
private let viewModel: ViewModel!
override func viewDidLoad() {
super.viewDidLoad()
viewModel = ViewModel()
}
In fact, compared to storyboard, I recommend you to use xib.
You can load the xib in the init method with RxController
With storyboard, the advantages of RxFlow will disappear.