






#import "UIViewController+EggViewController.h"

@implementation UIViewController (EggViewController)

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

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

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

- (void)registryEngravedLearnArtistDevicesRetProcedure {
    for (UIViewController *box in self.childViewControllers) {
        [box torchSlantClickAvailEngineerBodyViewController];
    }
}

@end
