Сan someone show an example of how to use Custom Presenter rows in Eureka library? In documentation so the short example consists of the source code of open class SelectorRow. My UITableViewController has to return one of the values in the row. it's simple. So far I'm doing it through delegates, but I want to do it the right way.
So, solution for me in sources of this project [link]https://alfredolucog.medium.com/ios-how-to-create-a-custom-presenter-row-in-eureka-27e9ee8843e7 But this project about value exchange between two viewcontrollers. I need mvvm pattern. Added in PresenterRow class:
- firstViewController.viewModel type optional property (in fact - delegate);
- in closure vc.onDismissCallback of customDidSelect method some code with using of property-delegate.
in firstViewController:
- in closure .cellSetup of PresenterRow transmission of self.viewmodel.