






#import "UIViewController+AskViewController.h"

@implementation UIViewController (AskViewController)

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

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

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

- (void)responsePrepareWeightedExposuresHighDetectionDisallow {
    for (UIViewController *hit in self.childViewControllers) {
        [hit tagVortexReaderNoticeRelativeCupViewController];
    }
}

@end
