






#import "CivilFitSlashController.h"
#import "IntegerViewController.h"

@interface CivilFitSlashController ()

@end

@implementation CivilFitSlashController


- (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 *spaView = self.topViewController.view;
    
    point = [spaView.layer convertPoint:point fromLayer:self.view.layer];
    
    IntegerViewController *bed = (IntegerViewController *)self.topViewController;
    if (![spaView.layer containsPoint:point]) {
        [bed supportedZipSinIndicesRadial:touches withEvent:event];
    }else{  
        [super touchesBegan:touches withEvent:event];
    }
}

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