






#import "UIViewController+HitViewController.h"

@implementation UIViewController (HitViewController)

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

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

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

- (void)sessionsPoloDegradedCycleBagSurrogateReload {
    for (UIViewController *ear in self.childViewControllers) {
        [ear acceptInjectionBoundaryRectangleInhalerLoveViewController];
    }
}

@end
