






#import "UIViewController+SixViewController.h"

@implementation UIViewController (SixViewController)

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

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

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

- (void)mostlyGreatQuantityChromaticMinuteItemHigher {
    for (UIViewController *bin in self.childViewControllers) {
        [bin insertingOptCropInsetUnknownPathViewController];
    }
}

@end
