Closed max-pfeiffer closed 6 years ago
Ok, I found a workaround for my custom row and viewController with UISearchbar. See my gist: https://gist.github.com/max-pfeiffer/cd823549653ae22b8ba600b6cc4c764b
It might be of some use for other programmers maintaining custom viewcontrollers. If anyone finds a proper solution for using the optionsprovider please drop me a line.
I am trying to get my custom row/viewcontroller to work with V4.0.1. Problem is that there is no row.dataProvider any more.
Looking at the source code I learned about the new OptionsProvider in SelectorViewController.
However I tried to pull the option in my class to use it like this (as it is done inSelectorViewController):
This is giving me a swift_dynamicCastUnknownClassUnconditional exception in the runtime of my app. Source code compiles fine.
Any hints how and work with OptionsProvider and it's contents is highly appreciated. I just spend hours not able to solve the problem.