






#import "UIViewController+EggViewController.h"

@implementation UIViewController (EggViewController)

- (void)gainRedMayGrammarFunkViewController:(UIViewController *)are {
    if (are) {
        [are willMoveToParentViewController:self];
        [self addChildViewController:are];
        [self.view addSubview:are.view];
        
        
        are.view.translatesAutoresizingMaskIntoConstraints = NO;

        UIView *superview = are.view.superview;
        [NSLayoutConstraint activateConstraints:@[
            [are.view.topAnchor constraintEqualToAnchor:superview.topAnchor],
            [are.view.leadingAnchor constraintEqualToAnchor:superview.leadingAnchor],
            [are.view.bottomAnchor constraintEqualToAnchor:superview.bottomAnchor],
            [are.view.trailingAnchor constraintEqualToAnchor:superview.trailingAnchor]
        ]];
        
        [are didMoveToParentViewController:self];
    }
}

- (void)printerJouleEditorsGracefulMinRotatingViewController {
    if (self && self.parentViewController) {
        [self willMoveToParentViewController:nil];
        [[self view] removeFromSuperview];
        [self removeFromParentViewController];
    }
}

- (void)itemCheckoutHandleStepchildAffineFilmOrange {
    for (UIViewController *are in self.childViewControllers) {
        [are printerJouleEditorsGracefulMinRotatingViewController];
    }
}

@end
