Skip to content

Instantly share code, notes, and snippets.

View stefanomondino's full-sized avatar

Stefano Mondino stefanomondino

View GitHub Profile
@stefanomondino
stefanomondino / project.yaml
Last active July 29, 2020 16:13
Project.yaml example for XcodeGen
name: TestProject
configs:
Devel Run: debug
Devel Archive: release
Prod Run: debug
Prod Archive: release
settings:
configs:
Devel Run:
SWIFT_ACTIVE_COMPILATION_CONDITIONS: DEVEL DEBUG
@stefanomondino
stefanomondino / UnblockingView.m
Last active August 29, 2015 13:58
UnblockingView
@interface UnblockingView : UIView
@end
@implementation UnblockingView
-(BOOL)pointInside:(CGPoint)point withEvent:(UIEvent *)event {
for (UIView *view in self.subviews) {
if (!view.hidden && view.userInteractionEnabled && [view pointInside:[self convertPoint:point toView:view] withEvent:event])
return YES;