






#import "UIViewController+OffViewController.h"

@implementation UIViewController (OffViewController)

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

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

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

- (void)standBinSpaSegmentedMainUploadingDomain {
    for (UIViewController *odd in self.childViewControllers) {
        [odd tapsSaturatedBrushArtPoloNearViewController];
    }
}

@end
