{"id":8922,"date":"2022-01-04T21:31:41","date_gmt":"2022-01-04T21:31:41","guid":{"rendered":"https:\/\/putridparrot.com\/blog\/?p=8922"},"modified":"2022-01-04T21:31:41","modified_gmt":"2022-01-04T21:31:41","slug":"change-the-colour-of-the-status-bar-on-ios-in-xamarin-forms","status":"publish","type":"post","link":"https:\/\/putridparrot.com\/blog\/change-the-colour-of-the-status-bar-on-ios-in-xamarin-forms\/","title":{"rendered":"Change the colour of the status bar on iOS (in Xamarin Forms)"},"content":{"rendered":"<p>As per my previous post <a href=\"http:\/\/putridparrot.com\/blog\/change-the-colour-of-the-status-bar-on-android-in-xamarin-forms\/\" rel=\"noopener\" target=\"_blank\">Change the colour of the status bar on Android (in Xamarin Forms)<\/a> we might wish to change the status bar on iOS.<\/p>\n<p>Open Info.plist in a code editor and add the following (if it does not already exist)<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n&lt;key&gt;UIStatusBarStyle&lt;\/key&gt;\r\n&lt;string&gt;UIStatusBarStyleLightContent&lt;\/string&gt;\r\n&lt;key&gt;UIViewControllerBasedStatusBarAppearance&lt;\/key&gt;\r\n&lt;false\/&gt;\r\n<\/pre>\n<p>Basically we&#8217;re disabling the status bar from taking it&#8217;s appearance from the preferred style of the current view controller &#8211; see <a href=\"https:\/\/developer.apple.com\/documentation\/bundleresources\/information_property_list\/uiviewcontrollerbasedstatusbarappearance\" rel=\"noopener\" target=\"_blank\">UIViewControllerBasedStatusBarAppearance<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As per my previous post Change the colour of the status bar on Android (in Xamarin Forms) we might wish to change the status bar on iOS. Open Info.plist in a code editor and add the following (if it does not already exist) &lt;key&gt;UIStatusBarStyle&lt;\/key&gt; &lt;string&gt;UIStatusBarStyleLightContent&lt;\/string&gt; &lt;key&gt;UIViewControllerBasedStatusBarAppearance&lt;\/key&gt; &lt;false\/&gt; Basically we&#8217;re disabling the status bar from taking [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[91,122],"tags":[],"class_list":["post-8922","post","type-post","status-publish","format-standard","hentry","category-ios","category-xamarin-forms"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/8922","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/comments?post=8922"}],"version-history":[{"count":2,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/8922\/revisions"}],"predecessor-version":[{"id":9065,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/8922\/revisions\/9065"}],"wp:attachment":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/media?parent=8922"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/categories?post=8922"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/tags?post=8922"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}