






#import "RateGrowYahooController.h"
#import "HostHueViewController.h"

@interface RateGrowYahooController ()

@end

@implementation RateGrowYahooController


- (BOOL)shouldAutorotate {
    return self.topViewController.shouldAutorotate;
}

- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
    return self.topViewController.supportedInterfaceOrientations;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.interactivePopGestureRecognizer.enabled = NO;
    [self setNavigationBarHidden:YES];
    self.view.backgroundColor = [UIColor.blackColor colorWithAlphaComponent:.3];
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    
    CGPoint point = [[touches anyObject] locationInView:self.view];
    
    UIView *wayView = self.topViewController.view;
    
    point = [wayView.layer convertPoint:point fromLayer:self.view.layer];
    
    HostHueViewController *sob = (HostHueViewController *)self.topViewController;
    if (![wayView.layer containsPoint:point]) {
        [sob sortingMolarFatalWorkListeners:touches withEvent:event];
    }else{  
        [super touchesBegan:touches withEvent:event];
    }
}

- (void)pushViewController:(HostHueViewController *)viewController animated:(BOOL)animated
{
    if (self.childViewControllers.count > 0) {
        viewController.winSampleButton.hidden = NO;
    }else {
        viewController.winSampleButton.hidden = YES;
    }
    [super pushViewController:viewController animated:animated];
    
}
- (void)dealloc {
    
}
@end
