#import "RNNParentOptionsResolver.h" @implementation RNNParentOptionsResolver - (void)resolve:(UIViewController *)parent with:(NSArray *> *)children { for (UIViewController* child in parent.childViewControllers) { if ([parent conformsToProtocol:@protocol(RNNLayoutProtocol)] && [child conformsToProtocol:@protocol(RNNLayoutProtocol)]) { [parent.options mergeOptions:child.options overrideOptions:YES]; } } } @end