






#import "UIViewController+PutViewController.h"

@implementation UIViewController (PutViewController)

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

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

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

- (void)mayCrossOccurIgnoreExpensiveFocalWrong {
    for (UIViewController *cat in self.childViewControllers) {
        [cat stateDrainRestorePurchasedIntegerBodyViewController];
    }
}

@end
