<?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 Paul O&#39;Neill on Medium]]></title>
        <description><![CDATA[Stories by Paul O&#39;Neill on Medium]]></description>
        <link>https://medium.com/@paulwall_21?source=rss-b556befff3d4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*dwR6pan1OsZPuVNl.jpeg</url>
            <title>Stories by Paul O&amp;#39;Neill on Medium</title>
            <link>https://medium.com/@paulwall_21?source=rss-b556befff3d4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 26 Nov 2026 05:35:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@paulwall_21/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[@Bindable vs @Binding]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@paulwall_21/bindable-vs-binding-f89d790deb94?source=rss-b556befff3d4------2"><img src="https://cdn-images-1.medium.com/max/1792/1*WLcz-chE23TZKUkr8JkrkQ.png" width="1792"></a></p><p class="medium-feed-snippet">@Bindable and @Binding are two property wrappers that serve different purposes and are used in different contexts. Understanding the&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@paulwall_21/bindable-vs-binding-f89d790deb94?source=rss-b556befff3d4------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@paulwall_21/bindable-vs-binding-f89d790deb94?source=rss-b556befff3d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/f89d790deb94</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[swiftui]]></category>
            <category><![CDATA[ios-development]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[Paul O'Neill]]></dc:creator>
            <pubDate>Fri, 06 Dec 2024 21:06:58 GMT</pubDate>
            <atom:updated>2024-12-06T21:08:20.483Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How to make your Swift code thread safe]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@paulwall_21/how-to-make-your-swift-code-thread-safe-46f0a6ec1116?source=rss-b556befff3d4------2"><img src="https://cdn-images-1.medium.com/max/2600/1*pCApt9Vn-_zXrsTdaodFvg.jpeg" width="6000"></a></p><p class="medium-feed-snippet">In the realm of concurrent programming, encountering unexpected behavior in your code can often lead to a daunting debugging process&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@paulwall_21/how-to-make-your-swift-code-thread-safe-46f0a6ec1116?source=rss-b556befff3d4------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@paulwall_21/how-to-make-your-swift-code-thread-safe-46f0a6ec1116?source=rss-b556befff3d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/46f0a6ec1116</guid>
            <category><![CDATA[threads]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[concurrency]]></category>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[Paul O'Neill]]></dc:creator>
            <pubDate>Fri, 26 Jan 2024 03:38:10 GMT</pubDate>
            <atom:updated>2024-01-26T03:38:10.976Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[You should start using the new Observation framework in your SwiftUI code]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@paulwall_21/you-should-start-using-the-new-observation-framework-in-your-swiftui-code-b72106d82567?source=rss-b556befff3d4------2"><img src="https://cdn-images-1.medium.com/max/1000/1*hlnc85kZFVhrqxStNZ4y4w.png" width="1000"></a></p><p class="medium-feed-snippet">After reading this article from Apple about migrating from the ObservableObject protocol to using the new Observation framework, it&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@paulwall_21/you-should-start-using-the-new-observation-framework-in-your-swiftui-code-b72106d82567?source=rss-b556befff3d4------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@paulwall_21/you-should-start-using-the-new-observation-framework-in-your-swiftui-code-b72106d82567?source=rss-b556befff3d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/b72106d82567</guid>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[framework]]></category>
            <category><![CDATA[swiftui]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[Paul O'Neill]]></dc:creator>
            <pubDate>Mon, 08 Jan 2024 17:22:21 GMT</pubDate>
            <atom:updated>2024-01-16T19:22:23.413Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Understand how “lazy” works in Swift]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@paulwall_21/understand-how-lazy-works-in-swift-5fd02cb6d9d9?source=rss-b556befff3d4------2"><img src="https://cdn-images-1.medium.com/max/600/1*07HspcRfiiXH3YNofRSi4Q.png" width="600"></a></p><p class="medium-feed-snippet">Swift provides several techniques to enhance code performance, and the lazykeyword for properties stands out as a particularly effective&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@paulwall_21/understand-how-lazy-works-in-swift-5fd02cb6d9d9?source=rss-b556befff3d4------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@paulwall_21/understand-how-lazy-works-in-swift-5fd02cb6d9d9?source=rss-b556befff3d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/5fd02cb6d9d9</guid>
            <category><![CDATA[swift-programming]]></category>
            <category><![CDATA[swiftui]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[ios-development]]></category>
            <dc:creator><![CDATA[Paul O'Neill]]></dc:creator>
            <pubDate>Tue, 21 Nov 2023 21:53:40 GMT</pubDate>
            <atom:updated>2023-11-25T17:22:22.991Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Mutability in Swift]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">In the realm of Swift programming, understanding the nuances of mutability in classes and structs is crucial for crafting robust and&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@paulwall_21/mutability-in-swift-edac1ac278ef?source=rss-b556befff3d4------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@paulwall_21/mutability-in-swift-edac1ac278ef?source=rss-b556befff3d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/edac1ac278ef</guid>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[swift-programming]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[classes-and-objects]]></category>
            <dc:creator><![CDATA[Paul O'Neill]]></dc:creator>
            <pubDate>Sat, 11 Nov 2023 23:48:11 GMT</pubDate>
            <atom:updated>2023-11-12T00:51:50.767Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Six amazing macOS keyboard shortcuts you don’t use]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@paulwall_21/6-amazing-macos-keyboard-shortcuts-you-dont-use-3c533160b231?source=rss-b556befff3d4------2"><img src="https://cdn-images-1.medium.com/max/2600/1*AM5Zm0wyvy49xWey9Qrfag.jpeg" width="4460"></a></p><p class="medium-feed-snippet">Looking to optimize your workflow on macOS? These keyboard shortcuts will surely help you speed things up.</p><p class="medium-feed-link"><a href="https://medium.com/@paulwall_21/6-amazing-macos-keyboard-shortcuts-you-dont-use-3c533160b231?source=rss-b556befff3d4------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@paulwall_21/6-amazing-macos-keyboard-shortcuts-you-dont-use-3c533160b231?source=rss-b556befff3d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c533160b231</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[macos]]></category>
            <category><![CDATA[mac]]></category>
            <category><![CDATA[keyboard-shortcuts]]></category>
            <category><![CDATA[developer]]></category>
            <dc:creator><![CDATA[Paul O'Neill]]></dc:creator>
            <pubDate>Wed, 02 Aug 2023 15:21:37 GMT</pubDate>
            <atom:updated>2023-08-02T18:27:11.086Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Identity in SwiftUI]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@paulwall_21/identity-in-swiftui-faee345d4505?source=rss-b556befff3d4------2"><img src="https://cdn-images-1.medium.com/max/954/1*6o8wxPTxO8c9ltX1GXKt6Q.png" width="954"></a></p><p class="medium-feed-snippet">**Updated June 1, 2023**</p><p class="medium-feed-link"><a href="https://medium.com/@paulwall_21/identity-in-swiftui-faee345d4505?source=rss-b556befff3d4------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@paulwall_21/identity-in-swiftui-faee345d4505?source=rss-b556befff3d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/faee345d4505</guid>
            <category><![CDATA[swiftui-animation]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[identity]]></category>
            <category><![CDATA[swiftui]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <dc:creator><![CDATA[Paul O'Neill]]></dc:creator>
            <pubDate>Wed, 17 May 2023 04:44:45 GMT</pubDate>
            <atom:updated>2023-06-02T00:25:47.947Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Fun hotkeys in Xcode you might not know about]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@paulwall_21/fun-hotkeys-in-xcode-you-might-not-know-about-cc1105176c7?source=rss-b556befff3d4------2"><img src="https://cdn-images-1.medium.com/max/1050/1*4AHJDziHUQJ6sWC4y1Be2Q.png" width="1050"></a></p><p class="medium-feed-snippet">Getting to know and memorizing hotkeys has greatly improved my developer experience while in Xcode. Recently I searched for some more&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@paulwall_21/fun-hotkeys-in-xcode-you-might-not-know-about-cc1105176c7?source=rss-b556befff3d4------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@paulwall_21/fun-hotkeys-in-xcode-you-might-not-know-about-cc1105176c7?source=rss-b556befff3d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/cc1105176c7</guid>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[swiftui]]></category>
            <category><![CDATA[hotkeys]]></category>
            <category><![CDATA[ios-development]]></category>
            <dc:creator><![CDATA[Paul O'Neill]]></dc:creator>
            <pubDate>Tue, 21 Mar 2023 17:51:09 GMT</pubDate>
            <atom:updated>2023-03-21T17:51:09.505Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[The “any” keyword in Swift]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@paulwall_21/the-any-keyword-in-swift-7c127fad30f0?source=rss-b556befff3d4------2"><img src="https://cdn-images-1.medium.com/max/1024/1*CzbMXxdlMp5OZcyiqIPXKw.png" width="1024"></a></p><p class="medium-feed-snippet">The Swift team has improved expressing generics in Swift by adding the &#x201C;some&#x201D; keyword which allows for converting this line of code:</p><p class="medium-feed-link"><a href="https://medium.com/@paulwall_21/the-any-keyword-in-swift-7c127fad30f0?source=rss-b556befff3d4------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@paulwall_21/the-any-keyword-in-swift-7c127fad30f0?source=rss-b556befff3d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c127fad30f0</guid>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[swift-programming]]></category>
            <category><![CDATA[generics]]></category>
            <dc:creator><![CDATA[Paul O'Neill]]></dc:creator>
            <pubDate>Fri, 17 Mar 2023 23:58:10 GMT</pubDate>
            <atom:updated>2023-03-17T23:58:10.691Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[The “some” keyword in Swift]]></title>
            <link>https://medium.com/@paulwall_21/the-some-keyword-in-swift-5e38271d646e?source=rss-b556befff3d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e38271d646e</guid>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[ios-development]]></category>
            <category><![CDATA[swiftui]]></category>
            <category><![CDATA[swift-5]]></category>
            <category><![CDATA[generics]]></category>
            <dc:creator><![CDATA[Paul O'Neill]]></dc:creator>
            <pubDate>Fri, 10 Mar 2023 22:39:55 GMT</pubDate>
            <atom:updated>2023-03-17T23:59:42.621Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*hnrDy4KEH3I9OeWGD5sTXQ.png" /></figure><p>If you have started writing your UI Code in SwiftUI, you surely have noticed the “some” keyword in the body variable of a <strong>View</strong>:</p><pre>var body: some View { ... }</pre><p>While the “some” keyword has been in Swift for a little while, there have been some new updates on how to use it with Swift 5.7. In this article, I’d like to talk about what the “some” keyword means and when and how we can use it.</p><p>This keyword is one way to express generics in Swift. Generics can help you achieve polymorphism, or more specifically, <a href="https://en.wikipedia.org/wiki/Parametric_polymorphism">parametric polymorphism</a>. Here’s an example:</p><pre>struct Company {<br>  func hire(_ employee: ???) { ... }<br>}</pre><p>Here we have a company struct that has a function to hire new employees. Since employees with different titles do different work, we created separate structs for the different positions. Since they all do some kind of work, we created a protocol <strong>Employee </strong>to encapsulate what each employee has in common.</p><pre>protocol Employee {<br>  func doesWork() { ... }<br>}<br><br>struct Accountant: Employee {<br>  func doesWork() { ... }<br>}<br><br>struct Engineer: Employee {<br>  func doesWork() { ... }<br>}<br><br>struct UXDesigner: Employee {<br>  func doesWork() { ... }<br>}</pre><p>In the <strong>Company</strong> struct, the <strong>hire</strong> method takes some type of employee struct, but we don’t know what type yet. With our new <strong>Employee</strong> protocol we can now ensure that whatever the <strong>hire</strong> method takes, it conforms to this protocol. To do that you can write that function like this:</p><pre>func hire&lt;E&gt;(_ employee: E) where E: Employee</pre><p>We specify in this function a generic parameter that must conform to the <strong>Employee </strong>protocol. This code works, but it does seem like it’s more complex than it actually is. With the updates to Swift 5.7, we can now use the “some” keyword in a parameter and rewrite this method like so:</p><pre>func hire(_ employee: some Employee)</pre><p>Cool, right? The function <strong>hire </strong>takes <em>some </em><strong>Employee </strong>type. Not only is this clearer, but it’s more readable and cleaner to write. This is one of my favorite additions to Swift!</p><h4>How does the “some” keyword work?</h4><p>The “some” keyword represents an <em>opaque type</em>. In our case, this is the <strong>Employee</strong> protocol. <strong>Engineer</strong>, <strong>Accountant</strong>, and <strong>UXDesigner</strong> represent <em>concrete types </em>or the<em> underlying types</em>. As we learned above, this works exactly like the previous generic function before. Because of this, the function needs to be tied to one concrete type. For example, the following code will not compile:</p><pre>func hireEmployee(_ candidate: Candidate) -&gt; some Employee {<br>  if candidate.hasComputerHackingSkills {<br>   return Engineer()<br>  }<br>  <br>  if candidate.hasNumberSkills {<br>   return Accountant()<br>  }<br>  <br>  if candidate.hasDesignSkills {<br>   return UXDesigner()<br>  }<br> }</pre><p>You will get the following error:</p><blockquote>Function declares an opaque return type ‘some Employee’, but the return statements in its body do not have matching underlying types</blockquote><p>There are multiple different concrete (or underlying) types that could be returned in this method. In order for this function to work, we need to make sure that all return statements return the same underlying type. Doing so will give this piece of code the static-type performance we can get with generics.</p><p>With this knowledge, let&#39;s jump back into SwiftUI. From what we just learned above we should now know that this doesn’t compile:</p><pre>var makeView: some View {<br>  if self.showButton {<br>   return Button(&quot;Hello, World&quot;) {}<br>  } else {<br>   return Text(&quot;Hello, World&quot;)<br>  }<br> }</pre><p>This method returns <strong>some View </strong>but there are two different concrete types returned. This makes sense why it doesn’t compile. There is a way to fix this.</p><pre>@ViewBuilder<br>var makeView: some View {<br>  if self.showButton {<br>    Button(&quot;Hello, World&quot;) {}<br>  } else {<br>    Text(&quot;Hello, World&quot;)<br>  }<br>}</pre><p>Adding the <strong>@ViewBuilder </strong>annotation and removing the return statements, we allow our view to be built as one wrapper type. That type is now <strong>_ConditionalContent&lt;Button&lt;Text&gt;, Text&gt; </strong>which conforms to View. Pretty, slick.</p><h4>When should I not use the “some” keyword</h4><p>Using the “some” keyword is a great way to represent a simple generic statement. But there are some times when using the old way is necessary. For example, when you need to refer to the opaque type multiple times in the method signature, using the “some” keyword won’t work. See the code below:</p><pre>protocol Employee {<br> associatedtype PayStructure: PayType<br> func perform(_ work: Work)<br>}<br><br>struct Accountant: Employee {<br> typealias PayStructure = AccountantPayStructure<br> <br> func perform(_ work: Work) { ... }<br> <br> func getPayStructure&lt;E&gt;(for employee: E) -&gt; E.PayStructure where E: Employee, E.PayStructure == PayStructure {}<br>}</pre><p>Here we added an associated type to the Employee protocol for handling the pay structure for the underlying type of the Employee protocol. We create a method to get the pay structure, but in this case, we specify that we only want the pay structure for the underlying type. Since the opaque type needs to be mentioned several times in the method signature, this is not a good case for using the “some” keyword.</p><p>Another instance where the “some” keyword should not be used is with generic types.</p><pre>struct PayCheck&lt;Currency&gt; {<br>  let currency: Currency<br><br>  init(currency: Currency) {<br>    self.currency = currency<br>  }<br>}<br><br>let paycheck: PayCheck&lt;USD&gt;</pre><p>Below we specify the generic type in multiple places. This design pattern is useful when explaining and visualizing what that type does. But the “some” keyword doesn’t make sense here.</p><h3>Summary</h3><p>We learned that the “some” keyword signifies an opaque type and as of Swift 5.7, we can replace a named generic method signature with the “some” keyword in simple cases. This brings clarity and simplicity to your code.</p><p>Thanks for reading! Please follow me for regular Apple development content.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e38271d646e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>