Skip to main content
100%

[Custom Eureka Push Row in Swift] Use a custom view controller for a 'push row' #eureka #swift

✓ Published0🌍 Public
AAnsonT
Last edited May 4, 2018
Created on May 4, 2018

This example shows how to extend Eureka’s `PushRow` to present a custom view controller using `CustomPresenterRow<ControllerType>`, which inherits from `OptionsRow` and conforms to `PresenterRowType`. The row uses a storyboard and identifier to instantiate the controller via `UIStoryboard.instantiateViewController(withIdentifier:)`, or falls back to a default `ControllerType()`. It demonstrates the `customDidSelect()` method to trigger presentation and `prepare(for:)` for segues, while `MyCustomRowViewController` implements `TypedRowControllerType`. The setup occurs in `MyFormViewController` with the `form` builder, configuring the row’s `storyBoardName` and `controllerName`.

AI-generated description

Similar vizzes