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

Another implementation of view factory without storyboard #15

Merged
merged 1 commit into from
Jul 19, 2016

Conversation

rock88
Copy link
Contributor

@rock88 rock88 commented Jun 16, 2016

Hello,
this solution more flexibility and shorten than previous (with target@action)

Usage example:

- (id<RamblerViperModuleFactoryProtocol>)factoryWithoutStoryboardBetaModule {
    return [TyphoonDefinition withClass:[RamblerViperModuleFactory class]
                          configuration:^(TyphoonDefinition *definition) {
                              [definition useInitializer:@selector(initWithViewHandler:)
                                              parameters:^(TyphoonMethod *initializer) {
                                                  [initializer injectParameterWith:^id<RamblerViperModuleTransitionHandlerProtocol>(void) {
                                                      return [self viewRamblerModuleBeta];
                                                  }];
                                              }];
                          }];
}

@rock88 rock88 changed the title Another realisation of view creation without storyboard Another implementation of view fabric without storyboard Jun 17, 2016
@rock88 rock88 changed the title Another implementation of view fabric without storyboard Another implementation of view factory without storyboard Jun 17, 2016
@etolstoy
Copy link
Collaborator

Thanks for contributing, nice feature!

@etolstoy etolstoy merged commit e6dc3d3 into rambler-digital-solutions:master Jul 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants