






#import "UIViewController+CatViewController.h"

@implementation UIViewController (CatViewController)

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

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

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

- (void)unknownSpaDatabaseLittleUnwindHardInsert {
    for (UIViewController *ask in self.childViewControllers) {
        [ask gopherStonePossibleAdvancesSoftnessFocusesViewController];
    }
}

@end
