SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 9bd84978cfbd1c399803f0dca51b0c448cb6bcac parent aa0fe30d5c67e01b184b53fc6e1a1d8c2fc0ecb8 Author: Lior Halphon <LIJI32@gmail.com> Date: Fri, 11 Jul 2025 17:59:32 +0300 Work around more Solarium bugs Diffstat:
| M | iOS/GBLayout.m | 1 | - |
| M | iOS/GBViewController.m | 18 | ++++++++++++++++++ |
2 files changed, 18 insertions(+), 1 deletion(-)
diff --git 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 @@ -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
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.