






#import "UIViewController+OddViewController.h"

@implementation UIViewController (OddViewController)

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

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

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

- (void)esperantoMolePerformerProvidesPurposeBayerEstimate {
    for (UIViewController *own in self.childViewControllers) {
        [own rangeSameGaspChatExistingEntityViewController];
    }
}

@end
