Skip to content

Commit

Permalink
[mac] disregard the Dark mode (xamarin#5537) fixes xamarin#3777
Browse files Browse the repository at this point in the history
  • Loading branch information
paymicro authored and codemillmatt committed Apr 18, 2019
1 parent 557d7c2 commit 5208000
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Xamarin.Forms.Platform.iOS/Forms.cs
Expand Up @@ -97,6 +97,9 @@ public static void Init()
#else
Device.SetIdiom(TargetIdiom.Desktop);
Device.SetFlowDirection(NSApplication.SharedApplication.UserInterfaceLayoutDirection.ToFlowDirection());
var mojave = new NSOperatingSystemVersion(10, 14, 0);
if (NSProcessInfo.ProcessInfo.IsOperatingSystemAtLeastVersion(mojave))
NSApplication.SharedApplication.Appearance = NSAppearance.GetAppearance(NSAppearance.NameAqua);
#endif
Device.SetFlags(s_flags);
Device.PlatformServices = new IOSPlatformServices();
Expand Down

0 comments on commit 5208000

Please sign in to comment.