How to override 'userInterfaceStyle' of menus displayed by UIMainMenuSystem?

My app is themeable, and uses window.overrideUserInterfaceStyle to set the userInterfaceStyle independently from the system setting.

This works great, except this does not change the userInterfaceStyle of the menus. So I'm occasionally experiencing light menus with a dark themed app, and vice versa.

Question: how to override the userInterfaceStyle of the menus managed by UIMainMenuSystem?

Thanks for your post, so my guess is you are using UIKit as that’s the label you selected? What device are you targeting?

UIKit does not provide an overrideUserInterfaceStyle property on UIApplication, UIWindowScene, or UIMainMenuSystem.

Can you explain a little bit more what are you trying to accomplish? Depending on what you are trying to do if you want to set the Interface have you tried by adding the UIUserInterfaceStyle key to your Info.plist (setting it to Light or Dark). https://developer.apple.com/documentation/bundleresources/information-property-list/uiuserinterfacestyle and take care at launch time not at runtime.

Albert  WWDR

This isn’t possible to do at the moment. Like the Mac, the menu bar on iPadOS will match the system appearance and status bar style. If you have a feedback report though, I’d appreciate it so we can track support for it!

How to override 'userInterfaceStyle' of menus displayed by UIMainMenuSystem?
 
 
Q