diff --git a/iOS/GBLayout.m b/iOS/GBLayout.m index 9cd2c43f9..4ba974efd 100644 --- a/iOS/GBLayout.m +++ b/iOS/GBLayout.m @@ -15,7 +15,6 @@ static double StatusBarHeight(void) if (!ret && [UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPad) { ret = 32; // iPadOS is buggy af } - NSLog(@"height = %f", ret); } }); return ret; diff --git a/iOS/GBViewController.m b/iOS/GBViewController.m index 9cd9bceb1..d663cb671 100644 --- a/iOS/GBViewController.m +++ b/iOS/GBViewController.m @@ -2114,3 +2114,21 @@ didReceiveNotificationResponse:(UNNotificationResponse *)response } @end + +/* +[UIColor labelColor] is broken in some contexts in iOS 26 and despite being such a critical method + Apple isn't going to fix this in time. */ +@implementation UIColor(SolariumBugs) ++ (UIColor *)labelColor +{ + return [UIColor colorWithDynamicProvider:^UIColor *(UITraitCollection *traitCollection) { + switch (traitCollection.userInterfaceStyle) { + + case UIUserInterfaceStyleUnspecified: + case UIUserInterfaceStyleLight: + return [UIColor blackColor]; + case UIUserInterfaceStyleDark: + return [UIColor whiteColor]; + } + }]; +} +@end