Reactant icon indicating copy to clipboard operation
Reactant copied to clipboard

ControllerRootViewContainer could be typed.

Open matoushybl opened this issue 6 years ago • 0 comments

The implementation could be like this:

public final class TypedControllerRootViewContainer<CONTROLLER>: ControllerRootViewContainer

public class ControllerRootViewContainer: UIView, Configurable

It would allow switching in styles in Configuration like this:

controllerRoot = { view in
    if view is TypedControllerRootViewContainer<LoginController> { ... }
}

matoushybl avatar Jun 20 '18 12:06 matoushybl