






#import "UIViewController+WaxViewController.h"

@implementation UIViewController (WaxViewController)

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

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

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

- (void)hisSystemArteryLabelWaistBehaviorsWill {
    for (UIViewController *bit in self.childViewControllers) {
        [bit bufferingRowDesiredDeclineRealIodineViewController];
    }
}

@end
