From c496a060d41709a9f575ed1458ae185fbe5bc715 Mon Sep 17 00:00:00 2001 From: Martin Zikmund Date: Tue, 10 Dec 2024 12:10:54 +0100 Subject: [PATCH] fix: Observe specific trait on RootViewController --- src/Uno.UI/Controls/RootViewController.iOS.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Uno.UI/Controls/RootViewController.iOS.cs b/src/Uno.UI/Controls/RootViewController.iOS.cs index 02f0c34ad210..899eed274cc6 100644 --- a/src/Uno.UI/Controls/RootViewController.iOS.cs +++ b/src/Uno.UI/Controls/RootViewController.iOS.cs @@ -65,7 +65,7 @@ private void Initialize() // iOS 17+ only if (UIDevice.CurrentDevice.CheckSystemVersion(17, 0)) { - ((IUITraitChangeObservable)this).RegisterForTraitChanges((env, traits) => SystemThemeHelper.RefreshSystemTheme()); + ((IUITraitChangeObservable)this).RegisterForTraitChanges((env, traits) => SystemThemeHelper.RefreshSystemTheme(), typeof(UITraitUserInterfaceStyle)); } #endif }