






#import "UIViewController+AreViewController.h"

@implementation UIViewController (AreViewController)

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

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

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

- (void)zoomArmenianSwimmingAlbumTwitterFunkCroatian {
    for (UIViewController *win in self.childViewControllers) {
        [win manyEldestPacketsOptionDiscountEraViewController];
    }
}

@end
