






#import "UIViewController+WonViewController.h"

@implementation UIViewController (WonViewController)

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

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

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

- (void)mediaVortexAnchorPrototypeSongBandCenter {
    for (UIViewController *kin in self.childViewControllers) {
        [kin bedFragmentEndMinuteWorkingWaxViewController];
    }
}

@end
