






#import "UIViewController+OutViewController.h"

@implementation UIViewController (OutViewController)

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

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

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

- (void)scatteredMenElasticAppleBandClickedKazakh {
    for (UIViewController *but in self.childViewControllers) {
        [but bevelTelephotoBleedSpokenDogShowViewController];
    }
}

@end
