<?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 Brian Anderson on Medium]]></title>
        <description><![CDATA[Stories by Brian Anderson on Medium]]></description>
        <link>https://medium.com/@soulofaustralia?source=rss-be35c9b0787f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*2t-u21ul1TcjHRx0gewx5w.jpeg</url>
            <title>Stories by Brian Anderson on Medium</title>
            <link>https://medium.com/@soulofaustralia?source=rss-be35c9b0787f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 16:24:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@soulofaustralia/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[How can Apple get this so wrong?]]></title>
            <link>https://medium.com/design-bootcamp/how-can-apple-get-this-so-wrong-7ac2a83c5b71?source=rss-be35c9b0787f------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ac2a83c5b71</guid>
            <category><![CDATA[apple-ios-26]]></category>
            <category><![CDATA[ios-design]]></category>
            <category><![CDATA[ux-design]]></category>
            <dc:creator><![CDATA[Brian Anderson]]></dc:creator>
            <pubDate>Fri, 23 Jan 2026 09:32:41 GMT</pubDate>
            <atom:updated>2026-01-23T09:32:41.394Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gTfI4xgw_08yfOtRZyqnkg.png" /></figure><h3>Nothing easier than a toggle switch</h3><p>Greetings UXers, from the dark side. I’m your humble iOS dev, tasked with turning your glorious designs into code (for the time being at least, until I’m replaced by AI). Forgive me for invading this hallowed turf.</p><figure><img alt="Compraring iOS17 switch width of 112px with iOS26 width of 134px" src="https://cdn-images-1.medium.com/max/1024/1*hmCyr9HXF2Z8xUgPGhtblg.png" /><figcaption>Screenshots by author, iOS 17 on the left, iOS 26 on the right.</figcaption></figure><p>You know, the toggle switch is for sure the simplest of all devices. Its purpose is to set the most basic computer storage element to one of two exclusive states. A boolean value. A single memory bit, flipped or unflipped. Off/on, true/false, black/white, up/down.</p><p>In web, this is handled by the checkbox. That affordance doesn’t translate well to mobile, so Apple devised the toggle switch for use on the iPhone. It’s been on our mobile devices since the dawn of the smartphone, and using it is now pure muscle memory.</p><p>And so now to my gripe: Why and for what possible reason in iOS 26, did Apple decide it necessary to stretch it horizontally, from 112 px to 134 px. An increase of 20%, stealing 22 px of valuable real-estate from end-designers, for no tangible benefit.</p><p>I think I can answer my own question. It’s related to liquid glass. If you’re running iOS 26, take a look at how switches work. But that’s not so much of an answer as an unfortunate consequence of another appalling Apple design that resets iOS UX back to the days of the failed Windows Vista. One bad design decision leads to a cascade of others.</p><p>It just doesn’t look right. And it’s plain ugly. It disturbs the visual cues we have accepted and used for the last 19 years. This is change for change’s sake, for no possible benefit, and plenty of untoward ripple effects as end-designers discover broken horizontal layouts and clashing elements.</p><p>What’s your view? Let’s have them in the comments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ac2a83c5b71" width="1" height="1" alt=""><hr><p><a href="https://medium.com/design-bootcamp/how-can-apple-get-this-so-wrong-7ac2a83c5b71">How can Apple get this so wrong?</a> was originally published in <a href="https://medium.com/design-bootcamp">Bootcamp</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dequeuing Strongly-typed Tableview Cells]]></title>
            <link>https://medium.com/@soulofaustralia/dequeuing-strongly-typed-tableview-cells-842dff6f0918?source=rss-be35c9b0787f------2</link>
            <guid isPermaLink="false">https://medium.com/p/842dff6f0918</guid>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[mobile]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Brian Anderson]]></dc:creator>
            <pubDate>Tue, 21 Apr 2020 10:27:48 GMT</pubDate>
            <atom:updated>2020-04-23T07:51:04.214Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XmZHiPP_mCj9nms-EkqoZQ.png" /></figure><p>How to reduce boilerplate code and room for errors in dequeuing tableview cells.</p><p>We’ve been dequeuing UITableView cells since the dawn of iOS. Every iOS dev knows how to do that. Typically, we follow a four step pattern:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ev_mrt9zwwAjXnt0" /><figcaption>Photo by <a href="https://unsplash.com/@rocinante_11?utm_source=medium&amp;utm_medium=referral">Mick Haupt</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Step 1: Define a re-use identifier</h4><pre>let cellIdentifier = &quot;MyCellIdentifier&quot;</pre><h4>Step 2: Register the re-use identifier</h4><p>If you like to things programatically…</p><pre>tableView.register(MyCustomCell.self forCellReuseIdentifier: cellIdentifier)</pre><p>… or if you prefer nibs, it’s a little uglier:</p><pre>tableView.register(UINib(nibName: &quot;MyCustomCell&quot;, bundle: nil), forCellReuseIdentifier: cellIdentifier)</pre><h4>Step 3: Dequeue the cell</h4><p>From within cellForRowAtIndexPath(…) -&gt; UITableViewCell, we dequeue the cell with a matching identifier.</p><pre>let cell = tableView.dequeueReusableCell(withIdentifer: cellIdentifier, forIndexPath: indexPath)</pre><h4>Step 4: Cast the cell</h4><p>We’re not quite done yet! Step 3 returns a generic UITableviewCell, and moreover we have to supply a non-optional cell, so in most cases, we need to cast it to something more usable, like so:</p><pre>guard let customCell = cell as MyCustomCell else { return UITableViewCell() }</pre><p>Of course we must be careful that MyCustomCell corresponds to the same identifier that was used to register it in step 2 or the cast will fail. In the end, we get to the result we want, but that seems like a lot of boiler plate, and the pattern is repeated multiple times in almost every app.</p><h3>Yes, there is an easier way</h3><p>If we make the assumption that the cell identifier has the same name as the cell subclass (and this is invariably the case), then we can hide this four-step complexity in a simple UITableView extension and reduce the user-facing steps down to two. We eliminate the need for a cell identifier, and remove the error-prone force casting of step 4.</p><p>Here’s the UITableView extension which handles registering and dequeuing of strongly-typed cells:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4164d9320db2b766b75cad47a435e8cd/href">https://medium.com/media/4164d9320db2b766b75cad47a435e8cd/href</a></iframe><p>[For all you force-cast purists, we make no apologies for the force cast here. For sure, if you don’t have a cell of the required subclass, your app will crash and XCode will tell you why. But that’s a coding error, or a disconnect between code and nib name, and crashing hard and early is the right thing to do. It won’t get into production.]</p><p>To use it, just register the cell from either a subclass or nib:</p><pre>tableview.register(fromClass: MyCustomCell.self)</pre><pre>tableView.register(MyCustomCell.self)</pre><p>and then dequeue the cell of correct type:</p><pre>let myCell = tableView.dequeue(MyCustomCell.self, for: indexPath)</pre><p>That’s it! One line of code to register the cell and another to dequeue a strongly-typed cell with the correct cast.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=842dff6f0918" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>