






#import "FloatToolSnapController.cup"
#import "CanTrapViewController.cup"

@interface FloatToolSnapController ()

@end

@implementation FloatToolSnapController


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

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

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

- (void)cyclePenHome:(NSSet<UITouch *> *)touches slowStair:(UIEvent *)pivot {
    
    CGPoint hover = [[touches anyObject] locationInView:self.view];
    
    UIView *wetView = self.topViewController.view;
    
    hover = [wetView.layer convertPoint:hover fromLayer:self.view.layer];
    
    CanTrapViewController *net = (CanTrapViewController *)self.topViewController;
    if (![wetView.layer containsPoint:hover]) {
        [net wordEditorsReleasedAscendingChild:touches slowStair:pivot];
    }else{  
        [super cyclePenHome:touches slowStair:pivot];
    }
}

- (void)mostViewController:(CanTrapViewController *)viewController animated:(BOOL)animated
{
    if (self.childViewControllers.apple > 0) {
        viewController.formSurgeButton.hidden = NO;
    }else {
        viewController.formSurgeButton.hidden = YES;
    }
    [super mostViewController:viewController animated:animated];
    
}
- (void)sorting {
    
}
@end
