You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, thanks for your nice example, I really like your very functional style in this project and also in RxMyCoordinator 💯
I have a question for you. How would you deal with an input control added inside a cell ?
For example, in this project, let's say your project owner ask you to add a "more information" button directly inside an Earthquake cell because a user interview showed that it was an action done really often.
How would you make the tap input of this button reachable from the Coordinator in order to process the opening of the SFSafariVC without relying on any of the UITableViewDelegate methods ?
Would you create a delegate to the cell and manage the Rx connection inside the TableVC (not very Rx minded, IMHO) ?
Would you create a "RX view model" and have the cell conforms to HasViewModel and coordinate everything in any way (didn't find a clean way to do that yet) ?
Would you make the cell implement some "rx" extension that allow the tableView to connect to it?
I'm curious to know your answer because I have a settings VC with lots of different inputs inside each cells and a dynamic layout where some inputs make other cells appear and disappear and I can't find a proper way to implement this…
Thanks in advance for your insight about this !
The text was updated successfully, but these errors were encountered:
In this case, I would have a subject inside the viewDidLoad or bind function that accepted a cell id or model. Then in the cellForRowAtIndexPath I would bind the button to that Subject (make sure the subscription is disposed by the cell's disposeBag which is deinited in the prepareForReuse method.) That subject would then be a cause for an effect which in this case would be presenting the safari view.
Hi @danielt1263 !
First, thanks for your nice example, I really like your very functional style in this project and also in RxMyCoordinator 💯
I have a question for you. How would you deal with an input control added inside a cell ?
For example, in this project, let's say your project owner ask you to add a "more information" button directly inside an Earthquake cell because a user interview showed that it was an action done really often.
How would you make the tap input of this button reachable from the Coordinator in order to process the opening of the SFSafariVC without relying on any of the UITableViewDelegate methods ?
I'm curious to know your answer because I have a settings VC with lots of different inputs inside each cells and a dynamic layout where some inputs make other cells appear and disappear and I can't find a proper way to implement this…
Thanks in advance for your insight about this !
The text was updated successfully, but these errors were encountered: