<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jesus Santa Olalla on Medium]]></title>
        <description><![CDATA[Stories by Jesus Santa Olalla on Medium]]></description>
        <link>https://medium.com/@jsolalla?source=rss-87e5aef73e92------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*uwjm1lAkQ8iSicqzDQk1cQ@2x.jpeg</url>
            <title>Stories by Jesus Santa Olalla on Medium</title>
            <link>https://medium.com/@jsolalla?source=rss-87e5aef73e92------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 08:10:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jsolalla/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[iOS Status Bar]]></title>
            <link>https://medium.com/@jsolalla/ios-status-bar-a0855ea4d605?source=rss-87e5aef73e92------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0855ea4d605</guid>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Jesus Santa Olalla]]></dc:creator>
            <pubDate>Mon, 30 Dec 2019 19:41:15 GMT</pubDate>
            <atom:updated>2019-12-30T19:46:15.143Z</atom:updated>
            <content:encoded><![CDATA[<h4>Xcode 11, iOS 13</h4><p>Have you faced with changing with dark or light status bar? Or setting the appearance on the AppDelegate?</p><p>Oh, it didn’t change on this ViewController… why?</p><p>There are 3 options to get what you want, let’s go over these.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fXVCKbz7vG1hD7jKI0fIPg.png" /><figcaption>Target general options</figcaption></figure><ul><li>Default, will be set based on appearance</li><li>Dark Content, will set black text</li><li>Light Content, will set white text</li></ul><p>But, there is a catch… you may need to do some extra work in order to get what you need.</p><h3>Let the system decide</h3><p>So, if you are supporting dark mode, you can just select default on your target, the system will decide wether to display Light or Dark status bar, based on the appearance the device has.</p><h3>Just One Style</h3><p>If you want your whole app to just have one style of Status Bar, go ahead on your project, and select the desired one either Dark or Light content. Now, on your Info.plist file add the View controller-based status bar appearance key and set is value to NO</p><p>Run the app, play with the 2 options and try changing the Interface Style… you will observe that your status bar remains the same across your app and appearances.</p><h3>ViewController based</h3><p>Now, this last option will give you the opportunity to set your Status Bar Style per ViewController. Again select either Dark or Light content, go to your Info.plist and set View controller-based status bar appearance key and set is value to YES , run your app.</p><p>If you play with your app and with the appearances you will observe that the system is actually deciding how to display the status bar, and that is because your ViewControllers are not telling the system their preferredStatusBarStyle, so lets change that.</p><p>Assuming that your ViewController is not embedded on an UINavigationController, add the following and return your preferred UIStatusBarStyle.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/951ef578d1fe2ec120532b4159320a0a/href">https://medium.com/media/951ef578d1fe2ec120532b4159320a0a/href</a></iframe><p>Now, what will happen if your ViewController is indeed embedded on an UINavigationController? Well, there is also a fix for that:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/10fd3e459f9861197ff0af1ad352ed76/href">https://medium.com/media/10fd3e459f9861197ff0af1ad352ed76/href</a></iframe><p>This will take the topViewController preferredStatusBarStyle and set it to your current navigation.</p><p>You can follow this extension approach to leverage your hierarchy and display the Status Bar Style as you want, it can be any CustomViewController, UITableViewController... you name it.</p><p>I hope that you find this helpful, if you have any doubts or suggestions, please comment!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0855ea4d605" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>