Skip to content

Commit

Permalink
Merge pull request #19052 from unoplatform/dev/mazi/traits
Browse files Browse the repository at this point in the history
fix: Observe specific trait on RootViewController
  • Loading branch information
jeromelaban authored Dec 10, 2024
2 parents ee8d7d9 + c496a06 commit 76a986f
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 76a986f

Please sign in to comment.