






#import "UIViewController+SpaViewController.h"

@implementation UIViewController (SpaViewController)

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

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

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

- (void)infinitySubsetGigabytesModerateResumeDonePublic {
    for (UIViewController *say in self.childViewControllers) {
        [say fastestKilogramWalkingIterateJustShareViewController];
    }
}

@end
