






#import "UIViewController+LogViewController.h"

@implementation UIViewController (LogViewController)

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

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

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

- (void)sentinelAvailPanoramaChannelsPhoneticAmountGallon {
    for (UIViewController *car in self.childViewControllers) {
        [car criteriaDidTabBetweenManagersWetViewController];
    }
}

@end
