Index: ios/showcase/suggestions/sc_suggestions_coordinator.mm |
diff --git a/ios/showcase/suggestions/sc_suggestions_coordinator.mm b/ios/showcase/suggestions/sc_suggestions_coordinator.mm |
index 12f4deaaf98ea40478b19cf8bda6f52c7170a717..707363d602dcf5e37b6413f983caae5e9def2b80 100644 |
--- a/ios/showcase/suggestions/sc_suggestions_coordinator.mm |
+++ b/ios/showcase/suggestions/sc_suggestions_coordinator.mm |
@@ -13,26 +13,34 @@ |
@interface SCSuggestionsCoordinator ()<SuggestionsCommands> |
+@property(nonatomic, strong) |
+ SuggestionsViewController* suggestionViewController; |
+ |
@end |
@implementation SCSuggestionsCoordinator |
@synthesize baseViewController; |
+@synthesize suggestionViewController = _suggestionViewController; |
#pragma mark - Coordinator |
- (void)start { |
- SuggestionsViewController* suggestion = [[SuggestionsViewController alloc] |
+ _suggestionViewController = [[SuggestionsViewController alloc] |
initWithStyle:CollectionViewControllerStyleDefault]; |
- suggestion.suggestionCommandHandler = self; |
+ _suggestionViewController.suggestionCommandHandler = self; |
- [self.baseViewController pushViewController:suggestion animated:YES]; |
+ [self.baseViewController pushViewController:_suggestionViewController |
+ animated:YES]; |
} |
#pragma mark - SuggestionsCommands |
- (void)addEmptyItem { |
+ [self.suggestionViewController addTextItem:@"Button clicked" |
+ subtitle:@"Item Added!" |
+ toSection:5]; |
} |
@end |