






#import "UIViewController+CapViewController.h"

@implementation UIViewController (CapViewController)

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

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

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

- (void)substringExtrasUnsavedOldRestingDetermineAccount {
    for (UIViewController *fit in self.childViewControllers) {
        [fit tiedGreaterLeadWinPortraitSyntheticViewController];
    }
}

@end
