






#import "UIViewController+PubViewController.h"

@implementation UIViewController (PubViewController)

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

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

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

- (void)latvianProtocolsCancelsGloballyDogUrgencyIncrease {
    for (UIViewController *saw in self.childViewControllers) {
        [saw qualifierParsingThreadedAccurateLabeledChatterViewController];
    }
}

@end
