Skip to content

Commit

Permalink
fix(ios): apply “overrideUserInterfaceStyle” to main app window (#13329)
Browse files Browse the repository at this point in the history
  • Loading branch information
hansemannn committed Apr 6, 2022
1 parent 6289860 commit 07c7422
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iphone/Classes/UIModule.m
Expand Up @@ -451,7 +451,7 @@ - (void)setOverrideUserInterfaceStyle:(id)args
notification:NO];
if ([TiUtils isIOSVersionOrGreater:@"13.0"] || [TiUtils isMacOS]) {
int style = [TiUtils intValue:args def:UIUserInterfaceStyleUnspecified];
TiApp.controller.overrideUserInterfaceStyle = style;
TiApp.app.window.overrideUserInterfaceStyle = style;
}
}

Expand Down

0 comments on commit 07c7422

Please sign in to comment.