Skip to content

Instantly share code, notes, and snippets.

@Dirk-Sandberg
Dirk-Sandberg / main.m snippet
Created December 23, 2019 03:18
How to determine if the top notch exists on iOS with python/kivy/pyobjus
@interface NotchDetector : UIViewController
@end
@implementation NotchDetector
-(id)init {
NSLog(@"initializing NotchDetector");
return self;
}
- (BOOL)hasTopNotch {
if (@available(iOS 13.0, *)) {