#import "RNNDefaultOptionsHelper.h" @implementation RNNDefaultOptionsHelper + (void)recrusivelySetDefaultOptions:(RNNNavigationOptions *)defaultOptions onRootViewController:(UIViewController *)rootViewController { if ([rootViewController conformsToProtocol:@protocol(RNNLayoutProtocol)]) [((UIViewController *)rootViewController).presenter setDefaultOptions:defaultOptions]; for (UIViewController* childViewController in rootViewController.childViewControllers) { if ([childViewController conformsToProtocol:@protocol(RNNLayoutProtocol)]) { [childViewController.presenter setDefaultOptions:defaultOptions]; } [self recrusivelySetDefaultOptions:defaultOptions onRootViewController:childViewController]; } } @end