Skip to content

Commit

Permalink
fix: Observe specific trait on RootViewController
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinZikmund committed Dec 10, 2024
1 parent ee8d7d9 commit c496a06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Uno.UI/Controls/RootViewController.iOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit c496a06

Please sign in to comment.