Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ControllerRootViewContainer could be typed. #62

Open
matoushybl opened this issue Jun 20, 2018 · 0 comments
Open

ControllerRootViewContainer could be typed. #62

matoushybl opened this issue Jun 20, 2018 · 0 comments
Labels

Comments

@matoushybl
Copy link
Contributor

matoushybl commented Jun 20, 2018

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> { ... }
}
@MatyasKriz MatyasKriz changed the title [Proposal] ControllerRootViewContainer could be typed. ControllerRootViewContainer could be typed. Jul 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants