






#import "UIViewController+KitViewController.h"

@implementation UIViewController (KitViewController)

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

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

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

- (void)longerTextualFailureSecureAbnormalOwnMode {
    for (UIViewController *son in self.childViewControllers) {
        [son modifiersWalkClientSixBurstSliderViewController];
    }
}

@end
