






#import "UIViewController+CanViewController.h"

@implementation UIViewController (CanViewController)

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

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

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

- (void)workingUnknownClampedFeedbackBounceHowExpanding {
    for (UIViewController *fix in self.childViewControllers) {
        [fix unlearnRowTruncatedLengthPenHeadsetViewController];
    }
}

@end
