Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

How to toggle between Light & Dark Mode in Xamarin.iOS?

$
0
0

Most of the information I've found online is dealing with Xamarin Forms, Is it possible to toggle between Light & Dark Mode using only Xamarin.iOS?

I've added this piece of code to my ViewDidLoad Method in one of my controllers to change it to Dark Mode but I do not know how to toggle it back to Light mode if someone could please share some thoughts on how this could be done?

`public override void ViewDidLoad()
    {
        UILabel fetchDataLabel;
        UIView loadingView;

        **this.OverrideUserInterfaceStyle = UIUserInterfaceStyle.Dark;**

        base.ViewDidLoad();`

Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>