<?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 Daniel Ocasio on Medium]]></title>
        <description><![CDATA[Stories by Daniel Ocasio on Medium]]></description>
        <link>https://medium.com/@docasio.dev?source=rss-220ff38d9062------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*TFEBfIl8v9UJdtp8LYuybg.jpeg</url>
            <title>Stories by Daniel Ocasio on Medium</title>
            <link>https://medium.com/@docasio.dev?source=rss-220ff38d9062------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 22:21:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@docasio.dev/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[Siri AI Just Opened Up to Every Developer. Here’s What I’d Build for It.]]></title>
            <link>https://medium.com/@docasio.dev/siri-ai-just-opened-up-to-every-developer-heres-what-i-d-build-for-it-a065852bec54?source=rss-220ff38d9062------2</link>
            <guid isPermaLink="false">https://medium.com/p/a065852bec54</guid>
            <category><![CDATA[ios-development]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Daniel Ocasio]]></dc:creator>
            <pubDate>Sat, 14 Nov 2026 17:12:14 GMT</pubDate>
            <atom:updated>2026-11-14T17:12:14.658Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lUtA16YFfUtTYw601Mrckw.png" /></figure><h4>What the iOS 27.3 Developer Preview actually means for App Intents, and the kinds of things I think apps can start building for it.</h4><p>Back when iOS 27 dropped, I said the Siri and App Intents changes might end up being one of the coolest parts of the release.</p><p>Well not to say I predicted the future but, Apple just made that a lot more real 😅</p><p>With the iOS 27.3 beta on November 3rd, Apple opened up a Siri AI Developer Preview that lets any developer bring their app’s actions and content into Siri AI using App Intents. Not just the apps that happen to fit one of Apple’s existing schemas. Any app, and any custom action you build.</p><p>And honestly my first thought wasn’t “oh cool, a new API.” It was:</p><blockquote>“Hey Siri, start my shooting drill.”</blockquote><p>Because I actually have an app where that sentence makes sense. And I’d bet a lot of you are already picturing your own version of it. So instead of recapping Apple’s announcement (they already did that part), I want to go through what changed, what it means for the apps we build, and how I’d start thinking about it.</p><h3>What Actually Changed</h3><p>The short version: you can now hand your own App Intents to Siri AI as tools by adding .tool to the intent&#39;s @AppIntent macro. Siri takes a request in plain language, figures out which tool fits, fills in the parameters, and runs it. There&#39;s also a new thing called skills for combining a few actions into one bigger request, and Siri can now surface any entity in the Spotlight semantic index, not only ones that fit a schema.</p><p>You aren’t giving Siri your whole app either. You pick which actions it gets.</p><p>The part I think matters most is the metadata. Siri reads the title and description on your intent, plus the title and description on each parameter, to decide which tool matches what the person just said. Apple’s guidance is basically to write those descriptions for someone who has never seen your app.</p><p>So instead of Siri integration being:</p><blockquote>“Here are the exact phrases my app supports.”</blockquote><p>we’re moving closer to:</p><blockquote>“Here’s what my app can do. Explain it well and Siri figures out the wording.”</blockquote><p>That’s a REALLY different way of building our apps for voice and AI 🤝</p><h3>Your Intents Are Tools Now, Not Commands</h3><p>For years, building for Siri mostly meant mapping phrases to actions. You decided what the user was allowed to say and hoped they actually said it (which if we are all honest, is pretty dated and a little useless when it comes to user adoption). With Siri AI, your intents are more like tools an agent can reach for.</p><p>If you’ve been working with coding agents at all lately, this is going to feel VERY familiar 😅 Describe the capability well, and the model figures out when to use it.</p><p>Apple’s docs are pretty specific about what makes a good tool. The best candidates are actions someone can ask for in one sentence, with parameters Siri can fill in from that same sentence.</p><h3>The Description Is Doing More Work Than The Code</h3><p>Here’s a simplified example of what a tool could look like for something like a task app:</p><pre>@AppIntent(.tool)<br>struct CreateTaskIntent: AppIntent {<br>    static let title: LocalizedStringResource = &quot;Create Task&quot;<br>    static let description = IntentDescription(<br>        &quot;Creates a new task in the user&#39;s task list, optionally with a due date.&quot;<br>    )<br><br>    @Parameter(title: &quot;Title&quot;, description: &quot;A short name for the task&quot;)<br>    var title: String<br><br>    @Parameter(title: &quot;Due Date&quot;, description: &quot;When the task is due. Leave empty if no date is mentioned.&quot;)<br>    var dueDate: Date?<br><br>    func perform() async throws -&gt; some IntentResult {<br>        try await TaskStore.shared.add(title: title, dueDate: dueDate)<br>        return .result()<br>    }<br>}</pre><p>The Swift is honestly the boring part. What Siri actually cares about are those descriptions, and Apple even recommends spelling out formats, ranges, and units because the model doesn’t know your app the way you do.</p><p>Which means a lot of us are going to go back to existing App Intents and realize half of them are titled something like “Run Action” with no description 😭</p><h3>What This Could Look Like For Different Kinds Of Apps</h3><p>This is where it gets fun. A few ideas to get the gears turning:</p><ul><li>Fitness apps: “Start my usual leg workout.” “How many runs did I do this month?” Starting a session and answering questions about your history are both one-sentence requests.</li><li>Productivity apps: “Move everything due today to tomorrow.” “What’s on my list for this afternoon?” Tasks, notes, and projects are basically entities waiting to be found.</li><li>Finance apps: “How much did I spend on food this week?” Read-only questions feel like a great fit. Actually moving money is a different story (more on that in a sec).</li><li>Content apps: “Save this to my read later list.” “Play the episode I didn’t finish.” Onscreen awareness makes “this” actually mean something.</li></ul><p>A good exercise is writing down five things a person would actually ASK your app for. Not features. Requests, in plain words. If you can’t come up with five, maybe your app doesn’t need this yet, and that’s fine too.</p><h3>Spotlight Is How Siri Finds Your Stuff</h3><p>Tools are only half of it. Siri AI can now surface any entity in the Spotlight semantic index, not just entities that fit one of Apple’s schemas. So if your app has things people would ask about (workouts, notes, transactions, episodes), getting them indexed is how Siri finds them and passes them into your tools.</p><p>Siri can only work with what you actually give it.</p><h3>Skills Are For The Messy Multi-Step Stuff</h3><p>Skills are the part I think a lot of people are going to underestimate.</p><p>A skill is a SKILL.md file you ship inside your app with a name, a one-line description, and plain Markdown guidance telling Siri which tools go together for a bigger request, which one to prefer, and what to avoid.</p><p>Apple is very clear about one thing though: a skill is guidance, not a script. Siri doesn’t run your listed steps in order. So it’s less like writing a workflow and more like leaving notes for a really smart assistant who’s never opened your app.</p><h3>What I Wouldn’t Hand To Siri</h3><p>Not every intent should become a tool, and Apple says the same. Their docs call out widget configuration intents, intents that only make sense as one step inside a shortcut, and actions with side effects a person needs to start explicitly, like placing an order and paying for it.</p><p>My own rule of thumb: if getting it wrong costs money, deletes something, or interrupts something time-sensitive, I want a human tapping a button. Reading data or starting something easy to undo? Great tools. Paying or deleting? Way more careful.</p><h3>How I’m Planning To Use It In My Own App</h3><p>To make this less abstract, here’s how I’m thinking about it for Jumpr, my basketball practice app. Not because you need a shooting tracker, but because a lot of apps have a similar “before, during, after” shape.</p><p>Before a workout, a start drill tool is the obvious one, with drills as entities so Siri can find a custom one by name. After a workout, a read-only tool for “where am I missing lately?” that answers from the stats the app already has.</p><p>During a workout though, I’m NOT handing it to Siri. Jumpr already does its own make/miss voice logging with SpeechAnalyzer, and that loop has to register every shot instantly without double counting. (I wrote <a href="https://medium.com/@docasio.dev/building-a-reliable-voice-command-feature-with-speechanalyzer-in-ios-26-5e0ca6dae07c">a whole article</a> on how annoying that was to get right 🫠) A conversational assistant isn’t what I want in the middle of a rep.</p><p>And since Apple says requests without an app name can get routed to the app with an active Live Activity, I’m thinking about an in-progress practice Live Activity way harder than I was a month ago 🫣</p><h3>How I’d Get Started</h3><p>Roughly the order I’d go in:</p><ol><li>Write down your five requests.</li><li>Look at the App Intents you already have and read their titles and descriptions as if you were Siri.</li><li>Mark two or three as tools with @AppIntent(.tool). Don&#39;t mark everything.</li><li>Get the content people would ask about into Spotlight.</li><li>Use the Siri Integration Advisor in Xcode, and script a few requests with the new Siri Evaluations framework so you notice when a change makes Siri worse.</li><li>Only write a skill once you have a real multi-step job for it.</li></ol><p>Test on a real device (not the Simulator) or through internal TestFlight, and try a bunch of different wordings for the same request.</p><h3>The Fine Print (Because There Is Some)</h3><p>Before anybody runs off and puts “Works with Siri AI” in their App Store listing:</p><ul><li>It’s a Developer Preview. It works in development builds and for internal TestFlight testers, not external testers or App Store users. Apple says App Store submissions open in the spring.</li><li>It needs an Apple Intelligence device set to a supported language.</li><li>It’s currently unavailable in the EU on iOS, iPadOS, and watchOS, and Siri AI isn’t available to users under 13.</li><li>If your app is in the background, it only gets requests that mention it by name.</li><li>From what I’ve seen in the developer forums, tool intents are marked unavailable on watchOS right now.</li></ul><p>So there’s real time to experiment before this reaches users, and honestly I’m fine with that. I’d rather spend the winter tuning descriptions than ship something that does the wrong thing confidently.</p><h3>Final Thoughts</h3><p>In my iOS 27 article I said your app increasingly isn’t just the UI someone sees after tapping its icon. Siri AI pushes that a lot further.</p><p>The question isn’t really “should I add a few Siri shortcuts?” anymore. It’s more like:</p><blockquote>If someone could just ask your app for something, what would they ask?</blockquote><p>Answer that well, describe it well, and Siri does the rest. At least that’s the pitch (Beta life, baby 🙃)</p><p><em>If you’re curious how the Jumpr experiment goes, it’s </em><a href="https://apps.apple.com/app/id6794844151"><em>on the App Store</em></a><em>, and I’ll probably write about what actually worked once the update ships 😎</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a065852bec54" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your App Might Have a Feature Problem. Just Not the One You Think.]]></title>
            <link>https://medium.com/@docasio.dev/your-app-might-have-a-feature-problem-just-not-the-one-you-think-5f2ba6b7fbba?source=rss-220ff38d9062------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f2ba6b7fbba</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[ios-development]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Daniel Ocasio]]></dc:creator>
            <pubDate>Sat, 17 Oct 2026 15:45:07 GMT</pubDate>
            <atom:updated>2026-10-17T15:45:07.743Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SgnhJj7ih8yx6MswLPacEQ.png" /></figure><h4>What redesigning Rippit’s iMessage experience taught me about improving a product without necessarily adding more to it.</h4><p>One thing I’ve noticed from working on my own apps is how easy it is to get caught up in building new features. There’s always another idea I want to try, something I could improve, or some functionality I think would make the app more useful. And honestly, that’s probably one of my favorite parts of being a developer (I fight myself daily not to immediately implement a new idea 🫠)</p><p>But while working on the latest update to <a href="https://apps.apple.com/us/app/rippit-twitch-emotes-gifs/id6741498615?utm_source=chatgpt.com">Rippit</a>, my iOS app for finding and sharing GIFs, Twitch emotes, and stickers, I started thinking more about how people actually use the features I’ve already built. Not to say I didn’t before, I just very intentionally put this on the forefront of my mind after my last release when thinking about what was next.</p><p>The update introduces quite a bit of new functionality, including custom Favorites Sets, but a good portion of my attention went toward redesigning the iMessage experience and parts of the main app and making existing functionality easier to access.</p><p>It got me thinking about something that’s pretty easy to overlook when you’re constantly building new things: <strong>sometimes your app doesn’t need more functionality. It needs a better way for people to use what’s already there.</strong></p><h3>The Problem With Being Your Own App’s Power User</h3><p>I think one of the more interesting challenges of being a developer is that you’re probably the least objective person when it comes to how intuitive your app is.</p><p>You’ve built every screen, decided where everything belongs, and probably navigated through the same flows hundreds of times while testing. You know exactly where to go to find something because, well, you put it there lol 😅</p><p>That familiarity can make it surprisingly difficult to recognize when an experience is becoming unnecessarily complicated.</p><p>As Rippit has grown since its original release about 2 years ago now, I’ve added different ways to discover, save, organize, and share content, along with entirely new types of content! Each addition serves a purpose, but the way those features fit together matters just as much as the functionality itself.</p><p>Take favorites, for example. Being able to save a GIF you like is useful, but what happens when you’ve saved dozens or even hundreds of them? You technically have everything you wanted to keep, but now finding one particular GIF might involve digging through a growing collection.</p><p>At that point, although it may give more of a dopamine rush, adding more content probably isn’t going to improve the experience much. Making the content you already have easier to access is a much more important problem to solve.</p><p>And I think this applies to just about any product with a growing set of features, whether it’s an iOS app, a SaaS platform, or something entirely different.</p><h3>Rethinking the Experience, Not Just the Features</h3><p>One of the bigger changes in Rippit’s latest update is a redesigned iMessage experience.</p><p>For some context, Rippit lets you browse and send GIFs, stickers, and Twitch emotes directly inside iMessage. So you’re not necessarily always opening the app because you want to spend time exploring a library of content. Most of the time, you’re probably in the middle of a conversation and want to find something funny to send.</p><p>Someone looking for a new reaction GIF might want to search or browse around for a while. But someone who sends the same five GIFs to their friends every day probably doesn’t want to repeatedly search for them.</p><p>I wanted the redesigned experience to better accommodate both situations, which meant reconsidering how people move between discovering content and getting back to something familiar.</p><p>One area I spent a good deal of time on was reorganizing the <strong>iMessage extension’s UI chrome</strong>, meaning the navigation and controls surrounding the actual content.</p><p>Rather than simply continuing to add functionality within the existing layout, I took another look at how the extension itself was organized. I reconsidered the hierarchy of the surrounding controls, how navigation fit into the experience, and how much attention those elements demanded compared with the GIFs and emotes people were actually there to use.</p><p>What I liked about this change was that it wasn’t necessarily about making Rippit capable of doing something it couldn’t do before. I was making existing functionality easier to use.</p><p>I also spent time rethinking the iMessage Home, including how recently sent content is surfaced and how easily someone can move between searching for something new and accessing something they’ve already used.</p><p>None of that changes what happens when you send a GIF, but it can change how much effort goes into finding the right one. And considering this all happens while someone is already in the middle of a conversation, I think that convenience becomes especially important.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kwH9e9S6b-VU-z6MnbCxGg.png" /></figure><p>There’s also an interesting difference between designing an interface that <em>looks</em> organized and designing one that’s organized around how people actually use it.</p><p>You can make a screen look incredibly clean, but if the things people use most often are buried behind several interactions, how much did that really help? That’s something I’ve been trying to pay more attention to.</p><h3>Sometimes Better Organization Actually Means Building Something (Kinda) New</h3><p>Another addition to Rippit’s update is <strong>Favorites Sets</strong>, which let users create separate collections for their saved GIFs and emotes.</p><p>This is where the whole idea gets a little funny because, technically, I <em>did</em> add another feature to help solve an organization problem. But I think there’s a meaningful difference between introducing a completely new capability and building something that makes existing functionality more useful.</p><p>Favorites already existed. What I wanted to improve was how someone manages that favorited content as their collection grows. Instead of having every saved item live in one place, users can now organize their favorites into different sets. Maybe that’s a collection of reaction GIFs they use constantly, a bunch of emotes from a particular community, or whatever other categorization makes sense to them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2vgS8SsQ-l_x_gI5tGWV7w.png" /></figure><p>It’s a relatively straightforward concept, but I like it because the user gets to decide how their content should be organized instead of having to work around whatever structure I originally gave them.</p><p>And that’s an important thing to remember as a developer. The way I personally use an app isn’t necessarily how everyone else wants to use it.</p><h3>I Think We Sometimes Measure Progress the Wrong Way</h3><p>There’s something pretty satisfying about finishing a brand-new feature. You’ve got new functionality to show off, another item checked off your roadmap, and something tangible to include in the next update’s release notes.</p><p>Meanwhile, you could spend a considerable amount of time making an existing interaction more convenient, reorganizing a screen, or removing unnecessary steps from a flow, and it might not sound nearly as exciting when you describe it.</p><p>Nobody’s exactly rushing to announce that their latest update makes a menu easier to navigate. But that doesn’t mean the work is any less valuable.</p><p>I think developers, <strong>myself included</strong>, can sometimes get a little too focused on how many things an app can do rather than how well it does the things people actually care about. Rippit’s latest update is a good reminder of that for me because it includes both sides of the equation. Favorites Sets introduced new functionality that helps people manage their content, while the iMessage redesign gave me an opportunity to reconsider how existing features fit together.</p><p>Before adding something to my roadmap, I want to spend more time asking whether the problem actually requires a new feature, or whether there’s already something in the app that could solve it with a better experience.</p><h3>Giving Your Existing Features Some Attention</h3><p>I’m definitely not suggesting developers should stop building new features. I’d be a pretty big hypocrite considering how many ideas I still have sitting in my own backlog.</p><p>And Rippit’s latest update certainly isn’t short on new additions.</p><p>But I do think there’s value in occasionally looking at your app from the perspective of someone who didn’t build it and doesn’t already know how everything works.</p><p>As your product grows, the experience that made sense when you first launched might need to evolve alongside it. That doesn’t mean the original design was bad, or that you’ve been doing something wrong. You simply have more functionality to account for now.</p><p>Working on Rippit’s latest update reminded me that improving an app isn’t always about expanding what it’s capable of doing. Sometimes it’s worth spending just as much time making sure people can comfortably use everything you’ve already put into it.</p><p>And if you’ve been staring at your roadmap trying to figure out what feature to build next, it might be worth opening your app and using it like someone who’s never seen it before.</p><p>You might find there’s already plenty to work on.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f2ba6b7fbba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stop Explaining Your App in the Onboarding. Let Users Try It.]]></title>
            <link>https://medium.com/@docasio.dev/stop-explaining-your-app-in-the-onboarding-let-users-try-it-a7c982bd086e?source=rss-220ff38d9062------2</link>
            <guid isPermaLink="false">https://medium.com/p/a7c982bd086e</guid>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <dc:creator><![CDATA[Daniel Ocasio]]></dc:creator>
            <pubDate>Sat, 10 Oct 2026 14:40:25 GMT</pubDate>
            <atom:updated>2026-10-10T14:40:25.116Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V3du_O73UU5MPrjTVTQRng.png" /></figure><h4>How I built a five-shot basketball drill into Jumpr&#39;s onboarding so users could try the product before their first workout.</h4><p><a href="https://apps.apple.com/us/app/jumpr-basketball-training/id6794844151">Jumpr</a> is a basketball shooting tracker I have been working on for a while. It is easy enough to explain what it does, but getting someone who just downloaded it to understand why they might actually want to use it is a different problem to solve.</p><p>Especially when these days most people have an attention span of like literally 15 seconds 😅</p><p>Jumpr tracks makes and misses, where the shots came from, and how a player&#39;s shooting changes over time. I could put that into onboarding screens with nice typography, some animation, and an explanation for every feature. The user would probably understand what Jumpr does, but that doesn&#39;t necessarily mean they&#39;d understand what using it actually feels like.</p><p>This line of thinking is what shaped most of the onboarding I built. Instead of spending the entire experience explaining the product, before the user gets to the paywall, I added a five-shot demo of the core experience. As the user tracks shots, the court moves through shooting zones and their score changes. They can even try the same voice controls used during a normal practice session.</p><p>Jumpr then uses what they just did to explain where the product goes from there. That made onboarding feel more like someone&#39;s first experience with Jumpr, with the explanations building on something they had actually tried!</p><h3>There Is A Difference Between Showing A Feature And Teaching It</h3><p>One of my favorite pieces of research I found while looking into this was John Carroll and Caroline Carrithers&#39; 1984 paper, <a href="https://research.ibm.com/publications/training-wheels-in-a-user-interface">&quot;Training Wheels in a User Interface&quot;</a>.</p><p>They gave inexperienced users a simplified version of a real word-processing system. The basic work was still there, but just a little dumbed down, so some of the confusing advanced functionality was temporarily blocked off.</p><p>The training-wheels group averaged 92 minutes of total time on task, compared with 116 minutes for the group using the complete system. Unfinished tasks were assigned 120 minutes in that analysis. They also scored 2.7 out of 6 on a comprehension test, compared with 1.6; the authors described that result as &quot;41 percent better.&quot;</p><p>This design idea stuck with me: let people learn inside the product while reducing what they do not need yet, and what better place to apply that to than the onboarding! 🫣</p><h3>Compress The Product Until The Important Part Still Works</h3><p>A normal Jumpr session can be an entire basketball workout. That obviously does not fit inside onboarding. The question I needed to answer became: how small can I make the real experience before it stops proving anything? For Jumpr, five shots and a simple make/miss mechanic were enough.</p><p>The full loop a user would normally run through is: choose what to work on, run a drill, track shots, review the session, and build history. Onboarding only needs a slice.</p><p>By the time the demo begins, the player has already selected a shooting focus in the onboarding questions. Jumpr uses that answer to choose the mini drill. A three-point focus leads to a drill name on threes. A midrange focus gives the player different mid range spots. Paint finishing changes the drill again to be more paint oriented.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/330/1*pKQNlz0AI7C2OlsFeO7Ing.png" /></figure><p>I actually think a good onboarding demo should feel slightly incomplete. You want to give someone enough of the experience to understand why it matters without making them go through an entire session just to finish onboarding.</p><p>That idea also lines up with the DIS 2021 study <a href="https://doi.org/10.1145/3461778.3462047">&quot;Is It Better With Onboarding? Improving First-Time Cryptocurrency App Experiences&quot;</a>. The researchers built on earlier work about guiding people toward an &quot;aha!&quot; moment and a &quot;quick win,&quot; a meaningful action that helps them see the product&#39;s value for themselves. I saw five shots as Jumpr&#39;s version of that quick win because it is a:</p><blockquote><em>Short “Try it” ➡️ Yay you did it! Here’s your stats ➡️ “See? This is what you get with Jumpr”</em></blockquote><h3>I Wanted The User Touching The Product, Not Watching It</h3><p>There was another decision I felt pretty strongly about: the demo could not just be an animation showing how practice works. If Jumpr automatically recorded a few fake shots while the user watched, I would still be explaining the app. I would just be using motion instead of text.</p><p>The five shots needed to actually be theirs. Tap Make, and a make is recorded. Tap Miss, and a miss is recorded. The active shooting zone moves, and the result updates. Jumpr also supports hands-free shot logging during real workouts, so the demo can use the same production speech-recognition service. The user can say &quot;make,&quot; &quot;miss,&quot; or &quot;undo&quot; and see the app respond.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/330/1*7tV5ZON1dszOoBWRozephw.gif" /></figure><p>That small interaction gives the user a way to <strong>learn the basic practice UI</strong>, introduces a feature that is <strong>difficult to appreciate from a description</strong>, and <strong>gives the next part of onboarding something the user created</strong>. They get to try the controls before their first workout, which is useful on its own. Five shots probably will not fix anybody&#39;s jumper 😅</p><h3>The Demo Result Became More Valuable Than Another Feature Screen</h3><p>Once the fifth shot is recorded, the demo has real output. If the player made three shots, Jumpr can show 3 / 5, 60%, and how those attempts broke down across the zones they just used. The data is tiny and obviously not meaningful basketball analysis yet, which is fine. Its job is to connect what the player does during practice with what Jumpr can show afterward.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/330/1*izN2du7KtLhJypPSwBZrUQ.gif" /></figure><p>By this point the user has created a miniature tracked session and can imagine that same process across the workouts they are already doing. That feels much stronger to me than showing an analytics screenshot to somebody who has not even recorded their first shot.</p><p>One small bonus here is we CELEBRATE what the user did with some confetti. Some may think tacky or tiny detail, but making a user feel something was accomplished this early into having the app is just the kind of small detail that helps convert when the user gets to the paywall!</p><h3>Make The Demo Real Without Making Its Data Real</h3><p>The onboarding session behaves like a real practice session, but it is not a real practice session. So the demo keeps its own temporary shot state. It calculates makes, attempts, accuracy, and zones without saving those attempts as a workout or writing them into History. The interaction and calculation are real, but the data stays disposable. That lets me reuse the product’s rules without inheriting all of its side effects.</p><pre>struct DemoShotResult {<br>    var shots: [Shot]<br>    var makes: Int {<br>        shots.filter(\.isMake).count<br>    }<br>    var attempts: Int {<br>        shots.count<br>    }<br>}</pre><p>This is a simplified version of the production model. The demo can feel authentic while remaining disposable. Big W’s 🙌</p><h3>Personalization Needs A Payoff</h3><p>Building this flow made me more critical of onboarding questions. Apps love asking about goals, weaknesses, and how often you plan to use them. If those answers do not visibly change anything, I just gave the user a questionnaire.</p><p>In Jumpr, the player’s shooting focus affects the demo drill. Their weekly commitment question later fills in the training schedule, and their expected practice volume becomes a yearly estimate.</p><p>Collecting personalization data is different from making an experience feel personalized. The user has to notice that their answer mattered, otherwise it can come across as though you’re asking questions to con them into giving you money or time 🤠</p><h3>Engagement Is Not The Same Thing As Animation</h3><p>There is a lot of motion in Jumpr’s onboarding. The personalization sequence uses progress animation and haptics, and I even worked on handing a basketball animation from one screen into the next. I like that polish, but I do not think it is what makes the onboarding engaging.</p><p>(Btw here was that basketball animation because I thought it was sick):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/330/1*f8XHH_RDDnRx0oMr1YKfPw.gif" /><figcaption>Dope right? I thought so at least (maybe im delusional)</figcaption></figure><p>An animated feature tour is still a feature tour. What mattered more to me was giving the user agency: they choose a focus, try the controls, produce a result, and see the application respond. The animation should make those moments feel better, not do all the work.</p><h3>I Also Had To Start Deleting Things</h3><p>Building a more involved onboarding creates a predictable problem. Every screen starts sounding defensible: one question gives you more context, another creates a transition, and one reflection makes the value proposition clearer. None seems long by itself, but together they can become a chore.</p><p>There is useful industry data behind that concern. A <a href="https://clutch.co/resources/5-ways-to-improve-the-user-experience-of-mobile-app-onboarding">Clutch survey of 501 app users</a> found that 72% thought onboarding should take 60 seconds or less.</p><p>I would not interpret that as “every onboarding flow must be under exactly 60 seconds.” A banking app and a flashlight app do not have the same setup requirements. My takeaway is more that onboarding time needs to justify itself. Meaning it can take a few minutes, but are those few minutes engaging, interactive, and valuable to the product experience?</p><p>I removed parts of Jumpr’s flow even after building them. An improvement-tracking question and its reflection screen were cut. I folded other messages into stronger moments, added a skip option, and adjusted pacing when sections felt heavier than their value.</p><p>“The demo survived because it was teaching the product by using the product. But there is a balance here so def something to think about</p><h3>What I Would Carry Into The Next App</h3><p>I do not think every app needs a five-shot demo or some extravagant feature INSIDE the onboarding itself. Some products have an obvious value proposition and almost no learning curve. Forcing interactivity into those products would just create more onboarding for the sake of onboarding.</p><p>When a product’s value is difficult to understand until someone tries its core interaction, I would do this again. Instead of starting with “What features do I need to explain?” I would ask:</p><p><em>What is the smallest thing someone can do that makes the value of this product obvious?</em></p><p>For Jumpr, the answer was five basketball shots. They teach the basic interaction, demonstrate voice tracking, generate a result, and give the rest of onboarding something concrete to build on.</p><p>A handful of screens could have described all of that, but actually doing it made most of those descriptions unnecessary.</p><p>Or, im wrong about all of this and my analytics end up telling me this is where all the users dropped off and I have now built a whole feature and wrote an article on it for nada. (Oh the joys of creating a product 🙃)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a7c982bd086e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Details That Separate a Working App From a Polished Finished Product]]></title>
            <link>https://medium.com/@docasio.dev/the-details-that-separate-a-working-app-from-a-polished-finished-product-90d6db3d319c?source=rss-220ff38d9062------2</link>
            <guid isPermaLink="false">https://medium.com/p/90d6db3d319c</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <dc:creator><![CDATA[Daniel Ocasio]]></dc:creator>
            <pubDate>Sat, 03 Oct 2026 15:33:41 GMT</pubDate>
            <atom:updated>2026-10-03T15:40:29.825Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4LFY21lBm_rwOGApXXtF-A.png" /></figure><h4>What I learned polishing my App Jumpr before launch.</h4><p>When I started getting Jumpr ready for the App Store, I kept finding things that technically worked and still bothered me.</p><p>I could record shots and the numbers would update, the stats would update and show the right numbers. But the buttons felt a little flat. A screen showed the right result but came in too abruptly. A glass card looked good in a preview and oddly dead on the actual Home screen. Nothing was broken enough to stop me from calling it ‘MVP ready,’ but I kept noticing details that made the app feel raw and unpolished.</p><p>Jumpr is my basketball practice app. The main job and problem it solves is pretty straightforward: track shots while you practice, then make those results useful afterward. I had spent a long time building the actual product, and somewhere along the way I started treating “the feature works pretty well and intuitively” as the finish line. However, each feature has a lot of little moments around it. Those moments are part of using the feature too. Annoying discovery, honestly haha; you mean to tell me it all works, database is updating, but the feel of the app still falls flat on its face? Very, very rude &amp; cruel of software 🫠</p><p>The app literally just launched this week, while the core functionality of the app was all finished about a month or two ago, so I spent a lot of time in that uncomfortable stage where you use your own app over and over (and over 🫩) and suddenly every tiny thing has an opinion attached to it.</p><h3>The buttons are part of the feature</h3><p>The Make and Miss buttons get used repeatedly during a workout. If their response feels off, the whole practice flow can start to feel off, or at least much less interactable and more “Form Fill” like. If you catch my drift, using my app should feel interactive, responsive, and fluid, rather than like filling out a form just to update something. Almost as if on the spectrum from Arcade-y to google form filling, I wanted it to be much closer to an arcade like immersive experience while the user worked out.</p><p>Here is what that looked like, along with a write-up of the small details that make the experience feel more immersive:</p><p>Jumpr’s buttons shrink to 98% on press with a quick ease-out. That is a tiny change. It is also the difference between tapping something that looks like a button and getting a response that feels like one. The primary button has a real disabled state too, so it does not keep pretending to be available when it is not.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/302/1*2wZw6-dJhM3W-febzybDQw.gif" /></figure><p>Then there is the feedback after a shot is recorded. I wanted the Make button to react when a make succeeds and the Miss button to react when a miss succeeds. That sounds obvious until both buttons share the same view and one animation starts firing at the wrong time. I ended up tracking separate counters for Make, Miss, and Undo in the ViewModel, and only incrementing them after the operation succeeds.</p><p>But as you can tell, each action on screen doesn’t just have a “I updated this number / action 🫡” it has a “You tapped me and I saw that. And you know what I did? I fricken responded and made it known in a pretty sick way”. Jokes aside all the buttons have a fluid and distinct animation to them when tapped which really makes the user feel like they are interacting with something alive while working out rather than just filling a generic tracker in. Intuitively the pause button also automatically brings up the expandable control panel, and tapping play dismisses it. These are the polish items that can make a simple experience a great experience 🙌</p><p>There is some research that backs up why I care about the feel of that moment. A <a href="https://doi.org/10.1016/j.ijhcs.2011.06.006">2011 study on motion feedback for mobile touchscreens</a> looked at how animation properties such as duration and acceleration affected people’s descriptions of an interaction. It does not tell me what the right Jumpr animation is. But it does support the idea that motion changes how an input feels, even when the underlying action is the same.</p><h3>Use all the senses you can!</h3><p>Make and Miss also use different haptic feedback. I know I can’t quite show this in a video, but will do my best to explain this and if you wanna see how it feels, download the app 😉 (Shameless plug).</p><p>Tapping make has a rebound pattern (quick pop pop feel); a miss gets a softer feather pattern (like a light buzz). I wanted misses to feel different, but not like the app was scolding you. The player missed the basket. The app did its job. No need for a tiny phone-based disappointed parent. The idea was to help users associate each haptic with its own meaning: a satisfying make, or a miss.</p><p>A <a href="https://onlinelibrary.wiley.com/doi/full/10.4218/etrij.14.0114.0028">small mobile haptics study</a> found that people tended to prefer short, clear pulses for button presses, while longer buzzing felt more like an alert. The study used simulated buttons and typing tasks, so it is not evidence that my exact make and miss patterns are perfect. I took it as a useful reminder that adding more vibration is not automatically adding better feedback.</p><p>Haptics only help when someone is holding the phone, though. During a workout, the phone might be sitting nearby while the player is looking at the rim. Jumpr has voice logging for that reason. Users can say ‘Make,’ ‘Miss,’ or ‘Undo.’ When Jumpr logs a command, it plays a short confirmation sound. Separate cues indicate what was logged, and when it is listening or when an error occurs, so users can tell what the app is doing without standing next to their phone.</p><p>That sound distinction matters more to me than making every interaction feel fancy. If someone says “make” into their AirPods connected to their phone from across the court, the useful response is knowing the app heard them. They should not have to stop shooting, walk over, and inspect a beautiful little button animation or stat on screen.</p><h3>Glass means caring about what is behind it</h3><p>I spent time on Jumpr’s translucent surfaces too, and glass has a very cool way of making the background part of the component.</p><p>On the Home tab, the backdrop is intentionally made from blurred radial gradients and stays fixed while the content scrolls over it. That gives the glass something to react to. The surface itself uses native glass on iOS 26, with a material fallback on earlier versions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/302/1*bTswrR8uSv5LbwzN2tcYGA.gif" /><figcaption>Due to Medium quality restrictions it may be hard to tell the glass effect here, just trust me bro it looks sick 🫩</figcaption></figure><p>I could make a card look nice in isolation and still have it feel wrong once it was sitting over real content. A translucent surface does not get to control its whole appearance. Whatever is behind it is now part of the design whether I planned for that or not. Which gives the app this almost three-dimensional depth feel that overall feels very modern and sleek!</p><h3>I gave in-app toasts a whole lifecycle 😎</h3><p>The in-app toast started as one of those small things that seemed like it would take five minutes. It is a little message that appears and goes away. What could possibly happen right?…right? (My perfectionist brain had other plans)</p><p>Jumpr’s toast stays up for three seconds by default and I made it to where it has a thin progress bar showing how much time is left before it disappears. You can swipe it upward to dismiss it immediately. If you grab it and change your mind, the timer pauses while you drag and resumes with the remaining time when you let go.</p><p>That last part is a tiny detail someone may gloss over. If I start interacting with a message and it disappears under my finger because its timer ran out, the app feels like it was not paying attention. A small banner has apparently developed boundaries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/302/1*NEbW-XvxYO3ZfhpP0VbDEg.gif" /><figcaption>For context: I tapped Save on a drill -&gt; toward the end, swiped to dismiss the toast.</figcaption></figure><p>Another detail is the progress bar, which shows how long the toast will stay on screen. This is one of those tiny details that like I have pointed to a few times now, solves a tiny problem that makes the overall polished feel. Without it a user may think “I don’t wanna see this thing on my screen anymore how long until it goes”.</p><p>One last tiny detail: it’s made of GLASS! An in-app toast is the perfect place to use liquid glass because due to the fluid nature of it and not blocking the content behind it but more so just abstracting over it, it makes the toast feel less like a “Hey, just popping in now to take up this part of the screen real estate for a bit 🤠” and more like a “Im here, not to take up room on the screen, but to live fluidly with the content already behind it for a few seconds”. Very poetic and scholarly way to put that, I know.</p><p>I came in thinking about a notification pill. I left thinking about task cancellation, stale state, drag gestures, remaining time, exit animations, and accessibility. The rectangle that shows up around the app for a few seconds had a busy week.</p><h3>The results should feel like what you just accomplished</h3><p>After a workout, Jumpr has plenty of numbers to show you. I did not want them to land like a report card.</p><p>As the results come in, the circular progress ring animates to your actual shooting percentage while the rest of the content fades into place. When the confetti pops, there is a matching haptic. Your eyes see the celebration and your hand feels it too! Here’s how that looks:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/302/1*sHgEPEciS9ww-kbUJRzieQ.gif" /></figure><p>None of that changes the stats. It changes how they arrive. Instead of dropping a bunch of numbers on the screen, Jumpr gives you a moment to think, “That’s what I just did. Heck yeah.” The ring makes your percentage easy to take in, and the confetti and haptic give finishing the workout a small, familiar dopamine hit. A little “nice, I did that” before you move on.</p><p>I kept the motion tied to that moment. If you open an old workout from History, Jumpr gets straight to the results. You already know what you accomplished. The animation is there to make finishing feel satisfying, not to put a loading screen in front of your stats.</p><h3>I like confetti &amp; fireworks</h3><p>I love a little celebration in software. Jumpr has confetti after a nonempty practice and fireworks in the Pro welcome, with haptics timed to the firework and confetti pops. I spent time on those because basketball is fun and an app is allowed and SHOULD have some personality:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/302/1*Zek1I6J8DPNcjftZFYUVwQ.gif" /></figure><p>At the same time, there’s a happy medium. No need to spam your app with animations and haptics; use them tastefully! Finishing a workout or “Joining the Pro Club” is a great example of a place to celebrate with animation, on the contrary logging a miss probably does not need Madison Square Garden announcing that I have once again failed to become Steph Curry.</p><p>That is where I landed with delight: give the bigger response to moments that earned it. A button press needs to feel responsive. A workout ending can feel like an accomplishment. If every tap launches a parade, the parade becomes the app, which feels tacky.</p><h3>The part I kept finding right before launch</h3><p>Polishing Jumpr made me spend more time on the small space between an action and what the app does next. Is the press acknowledged? Does the number change clearly? Can you tell the voice command worked without looking at the screen? Does the toast hang around while you interact with it? Does the screen explain the result without making you wait through an animation?</p><p>If you are getting an app ready to ship, try using its most common interaction repeatedly for a few minutes. Make the same action over and over. Watch what moves, what stays put, and what the app tells you each time. That is where I kept finding things I had mentally filed under “basically done.”</p><p>Now for the moment you’ve all been waiting for: time to plug myself 😎 You can find <a href="https://apps.apple.com/app/id6794844151">Jumpr on the App Store</a>. Now that it is out, I am curious which little details people notice and which ones I surely spent an unreasonable amount of time thinking about 🤝</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90d6db3d319c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[iOS 27 + Swift 6.4: What Else Actually Matters for Developers]]></title>
            <link>https://medium.com/@docasio.dev/ios-27-swift-6-4-what-else-actually-matters-for-developers-533484e916c2?source=rss-220ff38d9062------2</link>
            <guid isPermaLink="false">https://medium.com/p/533484e916c2</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[ios-development]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[Daniel Ocasio]]></dc:creator>
            <pubDate>Sat, 26 Sep 2026 15:09:19 GMT</pubDate>
            <atom:updated>2026-09-26T15:09:19.692Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SthjuwxYF9a8ubZ1i-j0MQ.png" /></figure><h4>Part 2 of the changes I think are actually worth paying attention to</h4><p>A few days ago I went through the iOS 27 and Swift 6.4 releases and pulled out the changes that immediately stood out to me as an iOS developer.</p><p>And somehow I still left out a fair bit. Which is probably a good sign for the releases, but not a great sign for anybody trying to fit them into one reasonably sized Medium article 🙌</p><p>So this is Part 2. Same rule as before though:</p><p>I am NOT going through every new API and turning Apple’s release notes into a Medium article.</p><p>These are the remaining changes that I think are actually interesting from a developer perspective.</p><p>And honestly, some of these might end up affecting my everyday development more than the flashier stuff from Part 1.</p><h3>Core AI Is Very Different From Foundation Models</h3><p>I talked a lot about Foundation Models in Part 1. But iOS 27 also introduces something separate called Core AI.</p><p>Foundation Models gives us a higher-level way to work with language models through Apple’s ecosystem.</p><p>Core AI is for developers who want to bring their OWN models onto Apple hardware.</p><p>You can load, specialize, and execute models directly on-device through a Swift API, with Apple handling hardware specialization underneath.</p><p>That means no server requirement. No per-request token cost. And user data can remain entirely on the device.</p><p>Apple is also exposing lower-level controls around inference memory, zero-copy data paths, and stateful execution.</p><p>So this is not just:</p><blockquote><em>Here is another API that lets me ask an LLM a question.</em></blockquote><p>This is Apple building infrastructure for developers who actually want to ship machine learning models as part of their apps.</p><p>That could mean vision models, specialized classifiers, generative models, or something completely domain-specific that has nothing to do with chat, and THAT distinction is why I think Core AI is worth paying attention to.</p><p>Foundation Models makes Apple’s intelligence easier to use and integrate with, while Core AI makes it easier to bring your own intelligence.</p><h3>Swift Testing Is Becoming Much Easier To Adopt</h3><p>This one is considerably less flashy. It might also affect way more of my actual code 😅</p><p>Swift Testing has been around for a while now, but one of the problems with any new testing framework is pretty obvious:</p><p>Existing apps already have tests. A lot of them. And those tests probably use XCTest.</p><p>Nobody wants to stop product development for two weeks because:</p><blockquote><em>We have decided that ALL TESTS MUST NOW BE MODERN.</em></blockquote><p>Swift 6.4 makes the transition much less dramatic.</p><p>You can now use XCTAssert inside Swift Testing tests and #expect inside XCTest.</p><p>That sounds like a tiny change. But I REALLY like what it enables.</p><p>Migration can happen incrementally. A project does not need a giant “testing framework migration.”</p><p>You can start writing new tests with Swift Testing while still using the XCTest utilities and infrastructure you already have. Then gradually move things over when it actually makes sense.</p><p>Swift 6.4 also adds repeated test execution, customizable representations of failed expectations, and support for attaching Transferable values on Apple platforms.</p><p>Again, none of this is headline material. But making the better tool easier to adopt is sometimes more valuable than giving the better tool another ten features.</p><h3>@Observable Is Getting More Powerful</h3><p>This one caught my attention because Observation is already something I use constantly with SwiftUI.</p><p>Swift 6.4 adds fine-grained and continuous change notifications for @Observable types. And while that sentence sounds extremely release-note-ish 😭, the direction behind it matters.</p><p>Observation started by making one of the most common pieces of SwiftUI architecture dramatically simpler.</p><p>Instead of building everything around ObservableObject, @Published, and the Combine machinery underneath it, we can model observable state much more naturally.</p><p>Now the Observation system itself is becoming more capable. Which matters beyond SwiftUI too.</p><p>As Observation gets better at describing how values change over time, @Observable starts looking less like:</p><blockquote><em>The newer thing you use for SwiftUI ViewModels.</em></blockquote><p>and more like a fundamental part of how Swift models state. I think we’re still watching this architecture mature and I would not be surprised if more and more Swift APIs eventually build around Observation rather than Combine-style publishing.</p><p>For somebody building modern SwiftUI apps, this is one of those changes I would keep an eye on even if you do absolutely nothing differently tomorrow morning.</p><h3>Swift Build Becoming The Default Is Quietly A Pretty Big Deal</h3><p>This is probably one of the <strong>least</strong> exciting sentences I can write:</p><blockquote><em>Swift Package Manager now uses Swift Build by default.</em></blockquote><p>🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥</p><p>But hear me out lol.</p><p>Swift Build gives SwiftPM a common build implementation across macOS, Linux, and Windows. And I think this becomes more important when you zoom out and look at where Swift itself is going.</p><p>Swift is no longer trying to be:</p><blockquote><em>Apple’s language for making apps.</em></blockquote><p>It is being pushed across servers, Windows, Linux, Android, WebAssembly, embedded devices, C++, Java interop, and more.</p><p>For that to work, Swift cannot have a development experience that only really feels first-class when everything eventually funnels back into Xcode.</p><p>A more unified build system is part of making Swift feel like an actual cross-platform language rather than an Apple language that technically runs elsewhere.</p><p>SwiftPM 6.4 also adds Software Bill of Materials generation, which lets packages produce SPDX or CycloneDX documents describing their software dependencies.</p><p>That will probably never be the feature somebody puts in a keynote. But for larger teams, enterprise environments, security reviews, and dependency auditing?</p><p>That is legitimately useful. The boring infrastructure matters. Especially if Swift wants to keep expanding outside the Apple ecosystem (I know I want them to)</p><h3>Xcode Can Finally Show Us What Swift Concurrency Is Actually Doing</h3><p>async/await made asynchronous Swift MUCH nicer to write.</p><p>It did not magically make concurrency simple. You can still create actor contention. Tasks can still spend time waiting in places you did not expect. You can still accidentally serialize work that you thought was concurrent.</p><p>And sometimes you end up staring at perfectly reasonable-looking async code wondering:</p><blockquote><em>Why is this thing STILL slow? 🤠</em></blockquote><p>Xcode 27’s Swift Concurrency instrument gives us much better visibility into what is actually happening. You can inspect async task scheduling, actor contention, and thread usage. And THAT is the kind of tooling I want as Swift Concurrency becomes more deeply embedded in basically everything we build.</p><p>One of the hardest parts of performance work is that source code tells you what you asked the program to do. Profiling tells you what the program actually did.</p><p>Xcode 27 also improves the broader Instruments workflow with better ways to surface heavy call stacks and compare runs before and after a change.</p><p>So instead of:</p><blockquote><em>I changed some code and the app feels faster.</em></blockquote><p>we can actually profile, change something, profile again, and verify that it got faster.</p><p>Revolutionary concept, I know 😭</p><p>But better observability makes better engineering possible.</p><p>And as our concurrency models become more sophisticated, we’re going to need equally sophisticated ways to understand them.</p><h3>Swift 6.4 Has Some Smaller Quality-Of-Life Wins Too</h3><p>There are a couple language changes I don’t think deserve entire sections, but I definitely noticed them.</p><p>The new @diagnose attribute gives us source-level control over compiler warnings. You can suppress certain warnings or promote them to errors directly from code.</p><p>Swift 6.4 also adds module selectors using ::. So if two imported modules expose something with the same name, you can explicitly specify which module you mean rather than playing naming-conflict gymnastics.</p><p>Are either of these large enough to change your life? Probably not. But these are exactly the kinds of small language improvements I appreciate over time. A mature language SHOULD keep removing little sources of friction. Not every release needs a giant new paradigm. Sometimes I just want the compiler to stop making an awkward problem more awkward.</p><h3>The Bigger Story Is Still Swift Growing Up</h3><p>After going through both parts of these releases, I think this might actually be my biggest takeaway.</p><p>There is no single feature in Swift 6.4 or iOS 27 that defines where Apple development is going. It is everything happening at the same time.</p><ul><li>We have Foundation Models and Core AI making machine learning a much more native part of app development.</li><li>App Intents is making our apps increasingly understandable outside their own UI.</li><li>SwiftUI keeps absorbing more work from developers.</li><li>Swift Concurrency is getting both better language support AND better debugging tools.</li><li>Swift Testing is getting easier to adopt in existing projects.</li><li>Swift Build is helping create a more consistent toolchain across platforms.</li><li>And Swift itself continues becoming more comfortable outside both iOS and Xcode.</li></ul><p>That last part is probably the one I find most interesting. I am primarily an iOS developer, and obviously I still use Swift entirely for only iOS.</p><p>But the language is becoming bigger than the platform that created it. At the same time, Apple’s own platform tooling is becoming dramatically more capable. Those two things can exist together.</p><p>Swift can become a stronger general-purpose language while still becoming a better language for building Apple software.</p><p>And after going through everything in these releases, that is probably what I’m most excited about. Not one API. Not one framework. Not one AI feature.</p><p>Just having more places where Swift makes sense, and better tools when I choose to use it.</p><p>That feels like a pretty sick direction to be heading 🫡</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=533484e916c2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[iOS 27 & Swift 6.4 Just Dropped. Here’s What I Actually Care About as a Developer]]></title>
            <link>https://medium.com/@docasio.dev/ios-27-swift-6-4-just-dropped-heres-what-i-actually-care-about-as-a-developer-f42c71b6fdac?source=rss-220ff38d9062------2</link>
            <guid isPermaLink="false">https://medium.com/p/f42c71b6fdac</guid>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[ios-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Daniel Ocasio]]></dc:creator>
            <pubDate>Sat, 19 Sep 2026 22:15:22 GMT</pubDate>
            <atom:updated>2026-09-26T15:13:10.518Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YfbvhrgiDBrEeHZZY-sCng.png" /></figure><h4>The new APIs, Swift features, and tools I think are actually worth paying attention to</h4><p>New frameworks. New Swift features. More AI. More SwiftUI. Better tooling. Xcode getting increasingly comfortable doing parts of our jobs for us 😅</p><p>I could go through every single change, but Apple and the Swift team already made release notes for that.</p><p>So instead, I wanted to look at this from the perspective of someone who actually writes Swift and builds iOS apps every day.</p><p>What am I actually excited about? What could change the way I build apps And what do these releases tell us about where iOS development is going Because <strong>THAT</strong> is much more interesting 🤝</p><h3>Foundation Models Is Becoming A LOT More Serious</h3><p>Apple’s Foundation Models framework already gave developers a native Swift API for working with the models behind Apple Intelligence.</p><p>With iOS 27, it gets significantly more beefy. We are no longer just talking about sending text to an on-device model.</p><p>Foundation Models now supports multimodal prompts, so you can pass images alongside text. Models can use tools from Vision for things like OCR and barcode recognition, and Dynamic Profiles let you change the model, tools, and instructions being used during an ongoing session.</p><p>But probably the thing that caught my attention most is the new LanguageModel protocol. Foundation Models can now work with Apple’s models, cloud models like Claude and Gemini, or other providers that conform to the protocol.</p><p>Now that is pretty interesting.</p><p>Because now we’re getting an actual abstraction around AI inside the Apple development ecosystem.</p><p>Instead of your app architecture becoming:</p><blockquote>This feature uses Provider X forever because I built the entire thing directly around their SDK.</blockquote><p>we’re moving closer to:</p><blockquote>This feature needs a language model.</blockquote><p>And the actual model can become an implementation detail.</p><p>Obviously I want to spend more time actually building with this before making any giant claims about it, but I really like the direction.</p><p>AI is starting to look less like one giant API call glued onto the side of an app and more like another capability we can actually architect cleanly around.</p><h3>Siri Can Understand A Lot More About Your App</h3><p>This I think might end up being one of the coolest iOS 27 changes. App Intents is basically becoming a much deeper bridge between your app and Siri.</p><p>Entity schemas can make your app’s content available through the Spotlight semantic index. Intent schemas let Siri understand actions users can perform with that content without us defining every exact phrase somebody might say.</p><p>Then there are View Annotations. You can associate what’s currently visible in your UI with entities from your app, allowing someone to conversationally reference what is actually on their screen.</p><p>That starts opening the door to some pretty cool things we can do.</p><p>Instead of Siri integration being:</p><blockquote>Here are the five commands my app supports.</blockquote><p>we’re moving closer to:</p><blockquote>Siri understands what my app contains, what the user can do with it, and what the user is currently looking at.</blockquote><p>Apple also introduced an App Intents Testing framework so developers can validate these integrations through actual system pathways without needing to rely entirely on UI automation.</p><p>I think the broader takeaway here is bigger than Siri itself.</p><p>Your app increasingly isn’t just the UI somebody sees after tapping its icon. Its content and capabilities can exist throughout the operating system.</p><p>That makes App Intents feel less like an optional Siri feature and more like something worth thinking about when architecting an app.</p><h3>SwiftUI Keeps Quietly Getting Better</h3><p>Obviously this one matters to me 😅 There are a bunch of SwiftUI improvements in iOS 27, but a few stood out.</p><p>SwiftUI can now lazily load subviews while prefetching their content, which should make it easier to build large scrolling interfaces without eagerly creating everything upfront.</p><p>There are also new APIs for reordering content across lists and grids, and Apple has introduced a new approach for high-performance document-based apps that can work directly with files on disk.</p><p>None of these individually scream:</p><blockquote><strong>THIS CHANGES IOS DEVELOPMENT FOREVER 🤯</strong></blockquote><p>And that’s fine.</p><p>Honestly, some of my favorite SwiftUI improvements are the ones that just remove another annoying thing I previously had to build or optimize myself.</p><p>The framework keeps absorbing more of the behavior we used to manage manually. And I think that’s where SwiftUI has become dramatically more nice to build with over the years (Coming from a formerly full UIKit Dev😎)</p><p>The question is becoming increasingly less:</p><blockquote>Can SwiftUI build this?</blockquote><p>and more:</p><blockquote>How much of this is SwiftUI willing to handle for me now?</blockquote><h3>Swift 6.4 Makes Async Cleanup WAY Nicer</h3><p>Swift 6.4 has a lot in it, but there are a few changes that immediately made got me hyped to use.</p><blockquote>One of them is async work inside defer.</blockquote><p>You can now call asynchronous functions from a defer block and Swift will await them before leaving the scope. Yeah that sounds small.</p><p>But if you’ve worked with resources that require asynchronous cleanup, you probably immediately understand why this is nice.</p><pre>func processSomething() async throws {<br>    let resource = try await openResource()<br><br>defer {<br>        await resource.close()<br>    }<br>    try await doWork(with: resource)<br>}</pre><p>The cleanup lives exactly where I would expect cleanup to live.</p><p>Swift 6.4 also adds withTaskCancellationShield, which lets you protect cleanup work from cancellation of the surrounding task.</p><p>Combine the two and you can express something pretty important:</p><blockquote>I don’t care HOW we leave this function. This cleanup needs to happen.</blockquote><p>I’ve spent a lot of time working with asynchronous systems like speech recognition, HealthKit, Watch communication, and session lifecycles.</p><p>Cleanup matters. Cancellation matters. And cancellation happening halfway through cleanup really, REALLY matters 😭</p><p>This is exactly the kind of Swift change I like. It isn’t flashy. Nobody is buying a new iPhone because defer can await now.</p><p>But I can actually see it making production code cleaner. Those changes usually end up being some of the most valuable ones.</p><h3>Xcode Is Becoming An Agentic IDE</h3><p>This isn’t technically an iOS 27 API or Swift 6.4 language feature, but it is part of the same generation of Apple development tools and I think it’s too important to ignore.</p><p>Xcode 27 pushes coding agents much further into the actual development workflow. Agents can explore projects, plan changes, implement code, build, run tests, work with previews, interact with the simulator, and help with things like localization.</p><p>And this is probably the least surprising section of this article for me.</p><p>I already use coding agents wherever I can in my workflow. I also recently wrote an entire article about how I think AI is changing what it means to be a software engineer.</p><p>Xcode 27 reinforces my opinion even more.</p><p>The point i’m getting at isn’t:</p><blockquote>Wow, AI can write Swift now 🤯</blockquote><p>We’ve been there. The interesting part is that the OG development environment itself (XCode) is becoming agentic more and more.</p><p>An agent that can generate some Swift code is useful. An agent that understands the project, modifies code, builds it, runs tests, interacts with the app, sees what happened, and continues working?</p><p>That’s a very insanely different tool. The developer still owns the architecture, product decisions, tradeoffs, review, and ultimately what ships.</p><p>But the amount of mechanical work between:</p><blockquote>I know what I want to build.</blockquote><p>and:</p><blockquote>This is implemented and verified.</blockquote><p>keeps shrinking.</p><p>I think that’s going to change development workflows a LOT more than code autocomplete ever did.</p><h3>And This Is Only Half Of What Caught My Attention</h3><p>Those are probably the changes from iOS 27 and Swift 6.4 that immediately stand out to me the most. But they’re definitely not the only ones.</p><ul><li>There is Core AI for developers who want to bring their own models on-device.</li><li>Swift Testing becoming easier to introduce into existing XCTest projects.</li><li>Swift Build is now the default build engine for Swift Package Manager.</li><li>Swift itself keeps expanding beyond Apple platforms (Pretty sick stuff on this one)</li><li>@Observable got some cool improvements.</li><li>Swift tooling is getting better outside Xcode.</li><li>And Xcode’s new concurrency tooling looks like it might save me a headache or twelve.</li></ul><p>There is enough there that trying to cram everything I care about into this article would basically turn it into the exact giant release summary I didn’t want to write 😭</p><p>So I’m not going to. I’ll dig into those next. For now, I think the bigger takeaway from this first group is pretty clear:</p><p>AI is becoming part of the platform itself. Our apps are becoming more deeply connected to the intelligence of the operating system.SwiftUI keeps taking more layout and performance work off our hands. Swift Concurrency keeps getting easier to express correctly. And our development tools are becoming increasingly capable of acting instead of just suggesting.</p><p>That’s a pretty substantial amount of change for one release cycle. And we’re still not done 🤝</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f42c71b6fdac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Apple Just Announced the iPhone Duo. Your UI Shouldn’t Need a Rewrite. But if it Does Read This.]]></title>
            <link>https://medium.com/@docasio.dev/apple-just-announced-the-iphone-duo-your-ui-shouldnt-need-a-rewrite-but-if-it-does-read-this-b7b89054927d?source=rss-220ff38d9062------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7b89054927d</guid>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[swiftui]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Daniel Ocasio]]></dc:creator>
            <pubDate>Sat, 12 Sep 2026 16:32:38 GMT</pubDate>
            <atom:updated>2026-09-12T16:32:38.323Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rFiNp0AVCAO8w72yW0-HiA.png" /></figure><h4>Why adaptive SwiftUI layouts matter more than another device specific fix</h4><p>Apple just announced the iPhone Duo, and unsurprisingly one of the first reactions I started seeing from developers was basically:</p><blockquote><strong><em>Great. ANOTHER screen size I have to support 😭</em></strong></blockquote><p>Which is fair. We were nearing the point of no longer needing to account for the iPhone SE and now get hit with a foldable 🙌</p><p>A foldable iPhone introduces some genuinely new things to think about. There is an outer display, a much larger inner display, partially folded poses, multitasking, a hinge, and more ways for the amount of space available to your app to change while it is running.</p><p>But the announcement also made me think this was a REALLY good time to talk about something that should already matter when building mobile UI:</p><blockquote><strong><em>Your layout should not depend on a specific screen size in the first place.</em></strong></blockquote><p>That does NOT mean screen size does not matter. Obviously it matters (unless we’re talking about SE users 😉).</p><p>It means your UI should respond to the space it has instead of being built around assumptions about specific devices or only thinking of the most common screens.</p><p>And Apple is saying pretty much exactly that in its new guidance for iPhone Duo. Apple recommends designing across a range of available sizes, using size classes, safe areas, adaptive navigation, and flexible layouts instead of building UI around exact device dimensions.</p><p>The iPhone Duo did not create the need for adaptive UI. It just made ignoring it a lot harder.</p><h3>Stop Designing For Devices</h3><p>One of the easiest traps to fall into is thinking about layout like this:</p><pre>if deviceIsLarge {<br>    LargeLayout()<br>} else {<br>    SmallLayout()<br>}</pre><p>Or worse:</p><pre>if UIScreen.main.bounds.width &gt; 500 {<br>    LargeLayout()<br>} else {<br>    SmallLayout()<br>}</pre><p>This works, until it doesn’t.</p><ul><li>Then you have another device.</li><li>Then iPad multitasking.</li><li>Then Dynamic Type changes what fits.</li><li>Then localization turns one word into three.</li><li>Then Apple ships a foldable phone and the rectangle you designed everything around can now change while the user is holding it.</li></ul><p>Now your layout logic is being held together by magic numbers and prayer 🤠</p><p>The better question is usually not:</p><blockquote><strong><em>What device is this?</em></strong></blockquote><p>It is:</p><blockquote><strong><em>How much space does this view have right now?</em></strong></blockquote><p>That distinction changes the way you build UI.</p><p>Apple calls this out directly for Duo. The inner and outer displays provide different size classes, and Apple recommends using those existing concepts instead of making layout decisions based on the physical device. And the nice thing? SwiftUI already gives us the tools for that 🤝</p><h3>Size Classes Are About Available Space</h3><p>A basic example is:</p><pre>@Environment(\.horizontalSizeClass)<br>private var horizontalSizeClass</pre><p>Then:</p><pre>if horizontalSizeClass == .regular {<br>    ExpandedLayout()<br>} else {<br>    CompactLayout()<br>}</pre><p>That is already MUCH better than asking whether you are running on an iPad, iPhone Pro Max, Duo, or whatever Apple decides to release next.</p><p>You are making a decision based on the environment. SwiftUI can update those values while your app is running as the available space changes.</p><p>That matters a LOT more now. Before if you didn’t care, you just needed to hope your user didn’t use their phone in landscape, but now…The Duo’s outer display behaves like a compact environment, while the inner display gives you significantly more room.</p><p>So more than ever, now your UI needs to be able to come along for the ride where ever the user drives it.</p><h3>Sometimes SwiftUI Can Just Figure It Out</h3><p>You do not always need to manually decide between layouts. ViewThatFits is one of my favorite examples.</p><p>Imagine I have controls that I would prefer to display horizontally:</p><pre>ViewThatFits(in: .horizontal) {<br>    HStack {<br>        controls<br>    }    <br><br>     VStack {<br>        controls<br>    }<br>}</pre><p>SwiftUI tries the first option. If it fits, great. If not, it tries the next one.</p><p>I REALLY like the mentality behind this API.</p><p>You are not saying:</p><blockquote>On a 393 point wide screen, use an HStack.</blockquote><p>You are saying:</p><blockquote>I would prefer these controls horizontally. If there is not enough room, stack them vertically.</blockquote><p>That is a much more durable layout rule. And it helps with far more than the iPhone Duo. Different iPhones, Split View, localization, Dynamic Type, and other changes can all affect whether something actually fits.</p><h3>Let Bigger Spaces Become Better Experiences</h3><p>Adaptive UI does not mean everything should just stretch wider. Sometimes having more room should actually change how the app presents information.</p><p>Navigation is a good example.</p><p>On a narrow display:</p><blockquote><em>List → Detail</em></blockquote><p>With more room:</p><blockquote><em>List | Detail</em></blockquote><p>Same information. Same feature. Better use of the available space.</p><p>SwiftUI’s NavigationSplitView exists for this kind of adaptive navigation. Apple specifically recommends standard navigation containers because they already know how to collapse and expand across different environments.</p><p>That is another reason I prefer system components whenever they actually fit the product. You are not only getting Apple’s styling. You are getting behavior.</p><p>Behavior Apple can continue updating as its devices change. Pretty useful when Apple randomly decides to fold the iPhone in half one year 😅</p><h3>Safe Areas Exist For A Reason</h3><p>This is also a good reminder to respect safe areas. On Duo, those safe areas can vary depending on the device configuration.</p><p>Apple recommends keeping important interactive content within them while allowing backgrounds and decorative content to extend when appropriate.</p><p>Again, this is not really a new concept:</p><ul><li>Notches.</li><li>Home indicators.</li><li>Dynamic Island.</li><li>Toolbars.</li><li>Multitasking.</li></ul><p>Now folds. The hardware keeps changing. The principle does not.</p><h3>UIScreen.main Is Becoming An Even Worse Assumption</h3><p>On a device with two displays, what exactly is the “main screen”?</p><p>Apple specifically calls this assumption out in its Duo guidance. For layout decisions, the better source of truth is the current environment, scene, trait collection, or window geometry.</p><p>A global screen dimension tells you something about the hardware. It does NOT necessarily tell you how much space your view currently has. Those are different things and modern iOS keeps making that distinction more important.</p><h3>Adaptive Does Not Mean Building Five Versions Of Every Screen</h3><p>This is where some developers hear “adaptive UI” and imagine doubling the amount of UI work.</p><ul><li>Compact layout.</li><li>Regular layout.</li><li>Landscape layout.</li><li>Folded layout.</li><li>Half-folded layout.</li><li>iPad layout.</li></ul><p>Now everybody is crying and not running their app in a simulator / device thats not a normal sized portrait rectangle because “Let’s Protect our Peace” 🫪.</p><p>But that is not the goal. Most of your interface should ideally be naturally flexible already. Text can wrap as needed. Stacks can adapt as needed. Controls can respect their containers and move with screen change, as needed. Lists and scrolling content can grow and shrink. System navigation can handle many structural changes for you.</p><p>Then you add explicit adaptations where the experience actually BENEFITS from one.</p><ul><li>Maybe an HStack becomes a VStack.</li><li>Maybe one column becomes two.</li><li>Maybe a control moves out of a reserved region.</li><li>Maybe a sidebar appears when enough horizontal space becomes available.</li></ul><p>The UI should feel like the same product adapting itself, not like the user crossed a portal into another app.</p><h3>And Yes, You Still Need To Test Your App</h3><p>I want to make this VERY clear because otherwise somebody is going to read this as:</p><blockquote><em>I read this article that said adaptive SwiftUI means I never have to test another device again 😎</em></blockquote><p>NO.</p><p>Please test your app across screen sizes and different view conditions. A foldable iPhone introduces real edge cases.</p><p>You should test opening and closing the device, compact and regular environments, Split View, safe areas, navigation behavior, and any UI that changes structure based on available space.</p><p>The difference is what you are testing. <strong>Ideally</strong>, you are testing whether your adaptive layout has edge cases.</p><p>You should NOT be discovering that 70% of your app breaks because every screen was designed around one common iPhone size.Those are very different problems.</p><h3>The Duo Is Just The Latest Reminder</h3><p>I understand why developers see the iPhone Duo and think:</p><blockquote><em>Great. More work 🙌</em></blockquote><p>There WILL be work. Some apps will have special experiences that take advantage of the fold.</p><p>But your baseline UI should already be comfortable with the idea that available space changes. We already have different iPhones, iPads, multitasking, orientation changes, Dynamic Type, localization, and accessibility options.</p><p>Now we have a folding iPhone. And whatever comes after the Duo will probably expose another assumption we thought was safe.</p><p>That is why I think the better goal is not:</p><blockquote>How do I make my app support the iPhone Duo?</blockquote><p>It is:</p><blockquote>How do I build my UI so a new screen size is not an emergency?</blockquote><p><strong>The Pillars I’d standby in adaptive UI development 🗿:</strong></p><ul><li><strong>Use the space you are actually given.</strong></li><li><strong>Use size classes when structure needs to change.</strong></li><li><strong>Let SwiftUI choose between layouts when it can.</strong></li><li><strong>Respect safe areas.</strong></li><li><strong>Avoid building around global screen dimensions.</strong></li><li><strong>And test the weird stuff.</strong></li></ul><p>The iPhone Duo is new. Adaptive UI isn’t. If another screen size means rewriting your entire interface, the new phone is not the problem.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7b89054927d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Is Changing What It Means to Be a Software Engineer]]></title>
            <link>https://medium.com/@docasio.dev/ai-is-changing-what-it-means-to-be-a-software-engineer-71aa97e4f1f2?source=rss-220ff38d9062------2</link>
            <guid isPermaLink="false">https://medium.com/p/71aa97e4f1f2</guid>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Daniel Ocasio]]></dc:creator>
            <pubDate>Sat, 05 Sep 2026 00:22:10 GMT</pubDate>
            <atom:updated>2026-09-05T00:22:10.413Z</atom:updated>
            <content:encoded><![CDATA[<h4>How AI is shifting software engineering without replacing the engineer</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TPn4q-XA20s-D8-DU8wdzQ.png" /></figure><p>Over roughly the past year, I’ve been going deeper into AI as part of my software development workflow.</p><p>Before that, my stance was actually to stay away from it because I did not want to lose the development ability I had spent years learning and building.</p><p>And when I say going deeper, I do not mean just autocomplete or asking a model for a code snippet.</p><p>I mean learning how newer models reason through codebases, how coding agents operate with more autonomy, how tools can be integrated into those agents, where they perform well, where they fail, and how to build a workflow around them <strong>without giving up engineering judgment, review, and control. </strong>That last part matters a great deal to me.</p><p>I was already a software developer before any of this became part of my day-to-day work.</p><p>I learned development the normal way. I wrote the code myself, debugged it myself, spent hours and days on Stack Overflow, sometimes nearly through tears 🥲, traced state through applications, worked with APIs, dealt with persistence, broke architectures, fixed architectures, and slowly built the kind of judgment that comes from actually building software end to end.</p><blockquote><strong><em>AI did not make me a software engineer. What it has changed is how I operate as one.</em></strong></blockquote><p>And if I am being completely real, I have also had moments where that shift makes me feel VERY uneasy. I think a lot of developers have felt the same way.</p><p>When you watch an agent complete in minutes something that would have taken you much longer a few years ago, it is hard not to wonder what that means for the profession (and Passion!)</p><p>Stack Overflow’s 2025 Developer Survey found that <strong>64%</strong> of developers did not consider AI a threat to their current job, down from <strong>68%</strong> the year before. I can only imagine what that number will look like for 2026. (<a href="https://survey.stackoverflow.co/2025/work">Stack Overflow</a>)</p><p>I do not think that concern is irrational AT ALL. Even as someone who has an inclination toward optimism about where AI can take our profession, I still feel a fair bit of concern at times.</p><p>I just think the answer is more complicated than:</p><blockquote><strong><em>“AI can write code, therefore developers become less important.”</em></strong></blockquote><h3>Writing Code And Engineering Software Are Not The Same Thing</h3><p>For most of my time as a developer, writing the implementation and engineering the system were tightly connected because there was no realistic way to separate them.</p><p>If I designed a feature, I also wrote the feature. If I wanted a new service layer, I designed it and then personally wrote every part of it. If something broke, I navigated the project, found the relevant code, edited it, rebuilt, read the error, changed it again, and repeated that loop myself.</p><p>The thinking and the mechanical work happened at the same time. Now AI agents are starting to separate those two things.</p><ul><li>I can define how state should be owned.</li><li>I can decide where a responsibility belongs.</li><li>I can specify that an existing domain model should be reused instead of duplicating logic.</li><li>I can identify a race condition that needs unit test coverage.</li><li>I can set constraints around persistence, networking, error handling, or architecture.</li></ul><p>Then an agent can help accelerate the implementation loop around those decisions.</p><p>It can inspect the project, make a bounded change, build it, hit compiler errors, correct those errors, run tests, and surface the result back to me.</p><p>But that result is <strong>not automatically accepted.</strong></p><ul><li>I still need to understand the change.</li><li>I still need to review the diff.</li><li>I still need to know whether the architecture makes sense.</li><li>I still need to recognize when something technically works but is wrong for the system.</li></ul><blockquote><strong><em>That responsibility never went away. The tooling simply changed how much manual effort is required between a decision and a working implementation.</em></strong></blockquote><h3>“AI Wrote The Code” Is Not A Very Useful Metric</h3><p>I think one of the least useful ways we talk about AI-assisted development is by dividing software into human-written code and AI-written code.</p><p>That tells you almost <strong>NOTHING</strong> about the quality of the engineering process.</p><p>Imagine <strong>two developers</strong> using the same agent.</p><p><strong>The first says:</strong></p><blockquote>“Build me a settings screen.”</blockquote><p>The agent produces something that looks reasonable. It compiles. They do a quick smoke test, accept the diff, and move on. Now that is… one approach 🤐</p><p>The second developer understands how settings are modeled throughout the application. They know:</p><ul><li>Which state belongs in persistence</li><li>Which service owns it</li><li>Which existing components should be reused</li><li>What accessibility behavior is required</li><li>What happens when saving fails</li><li>Which patterns the rest of the codebase already follows.</li></ul><p>They give the agent those constraints. The agent produces an implementation.</p><p>Then the developer notices persistence logic has been placed directly inside the view. <strong>ABSOLUTELY</strong> not. Rejected. The agent revises it.</p><p>Then tests uncover an edge case the developer specifically wrote the test to catch. Boom. Fixed too 😎</p><p>Both developers technically “used AI.” But those are not the same software engineering process. The distinction I care about much more is:</p><blockquote><strong><em>Was the software engineered, or was it simply generated?</em></strong></blockquote><p>That distinction matters because AI output can look convincing right up until the whole thing collapses like a house of cards.</p><p>Stack Overflow’s 2025 survey found that <strong>84%</strong> of respondents were using or planning to use AI development tools, while only <strong>33%</strong> said they trusted AI output. The biggest frustration, reported by <strong>66%</strong> of developers, was getting solutions that are almost correct but not quite. (<a href="https://survey.stackoverflow.co/2025/ai">Stack Overflow</a>)</p><p>Almost correct is exactly where engineering knowledge matters. Code that obviously fails is easy to reject. Code that looks perfectly reasonable while introducing bad ownership, subtle concurrency problems, unnecessary abstraction, or incorrect business behavior is much more dangerous.</p><h3>AI Has Actually Made Me Broader As An Engineer</h3><p>One of the biggest reasons I am optimistic about this shift comes from my own experience. Before I started exploring AI tooling more deeply, I was much more specialized.</p><p><strong>Swift</strong> and <strong>iOS</strong> were clearly my strongest areas. I had some frontend web experience, while backend development was something I understood at a much more surface level. Basically backend to the extent you would expect a frontend-first engineer TO understand it 😅</p><p>The scope of what I think about now is much wider. I understand <strong>databases, APIs, backend systems, persistence, data contracts, caching, and service boundaries </strong>much better than I did before.</p><p>I spend more time thinking about how data and responsibilities move through an entire system instead of only what happens inside the client.</p><p>I also think much more like a <strong>product owner</strong> now. I care about what should be built, not only how to build it.</p><ul><li>Who is this for?</li><li>Does it solve the right problem?</li><li>What belongs in the product?</li><li>What should be removed?</li><li>What deserves more polish?</li><li>How should the feature be positioned?</li></ul><p>That has pushed me further into <strong>product ownership, product management, and product marketing</strong> too.</p><p>AI did not magically teach me those things. What it did was reduce some of the friction around implementation and give me more room to operate across the whole product. But of course that only works if I still understand what is happening.</p><ul><li>If an agent changes a schema, I need to understand the schema.</li><li>If it introduces an API contract, I need to understand the contract.</li><li>If it proposes an architectural boundary, I need to know why that boundary exists.</li></ul><p>Otherwise I am not becoming a broader engineer. I am just outsourcing parts of the system I no longer understand. Those are VERY different outcomes.</p><h3>The Developer Cannot Become An Approval Button</h3><p>This is the future I want to avoid most. An agent produces a change. The tests are green. he developer does not really understand it. They click Accept. Repeat.</p><p>If that becomes my entire role, I would struggle to call that software engineering.</p><ul><li>If a change touches architecture, I need to understand the architecture.</li><li>If it changes a data model, I need to understand the data model.</li><li>If it touches concurrency, I need to understand the ownership and lifecycle implications.</li><li>If I disagree with the implementation direction, it gets changed.</li></ul><blockquote>The goal is not to remove myself from engineering. The goal is to remove unnecessary friction from engineering.</blockquote><h3>Product Judgment Matters More As Implementation Gets Cheaper</h3><p>There is another side to this beyond code. If implementation gets cheaper, deciding what is actually worth implementing becomes more important.</p><p>AI lets me prototype ideas faster, explore alternatives, throw away approaches that are not working, and spend more time polishing things that may previously not have justified the cost.</p><p>That is an AMAZING advantage to have. It also makes it extremely easy to build things simply because you can:</p><ul><li>More features.</li><li>More screens.</li><li>More abstractions.</li><li>More complexity.</li></ul><p>Someone still needs taste. Someone still needs to understand the user.</p><p>Someone still needs to know when a technically impressive feature is making the product worse. Someone still needs to say no.</p><p>That is another reason I think the developer role can become broader.</p><blockquote>The engineer can own more of the path between an idea and a polished product, but only if they understand both the implementation and the product around it.</blockquote><h3>I Still Think There Is Something To Be Worried About</h3><p>I do not want to pretend every developer who adopts AI is guaranteed to be fine.</p><p>I don’t know that. Nobody does. Models will improve. Agents will handle longer and more complicated tasks.</p><p>Some work that currently requires multiple developers will probably require fewer people. There are moments when I see how quickly these systems are improving and wonder what the profession looks like five or ten years from now.</p><p>I think that is a reasonable concern for a lot of us to have, especially if you are like me, younger and hoping for a LONG career in this field.</p><p>What does not make sense to me is responding to that uncertainty by refusing to learn how the work is changing lol 😆.</p><p>If anything, it makes the deeper parts of software engineering more important:</p><ul><li>Architecture.</li><li>Systems thinking.</li><li>Product judgment.</li><li>Debugging.</li><li>Security.</li><li>Performance.</li><li>Data modeling.</li><li>User experience.</li><li>Technical decision-making.</li></ul><p>And yes, still knowing how to code.</p><p>The more capable the tooling becomes, the more important it is that somebody in the loop actually understands what is happening! Handing a PM with little technical knowledge; the entire codebase, access to push to Prod and a Claude subscription is like handing a loaded &amp; chambered AK-47 to an ape.</p><h3>The Shift Is The Opportunity</h3><p>The biggest difference between how I developed software before AI and how I work now is not that I became less of a developer.</p><p>I became <strong>broader! </strong>I started primarily as an iOS engineer.</p><p>Now I am more comfortable reasoning about backend systems, APIs, databases, architecture, product strategy, product management, marketing, user experience, and how those pieces connect.</p><p>I care more about implementation details than I used to, while also caring more about the system surrounding the implementation. That feels like MAJOR MAJOR growth to me!</p><p>AI can reduce the amount of time spent on mechanical work. <strong>What happens to that saved time is the important part</strong>. It can disappear into complacency and more time for Doom Scrolling the timeline while an agent works….</p><p>Or it can move into better architecture, better reviews, better product decisions, better systems thinking, and better craftsmanship. The developers who benefit most from these tools may ultimately be the ones who could still do the work without them.</p><p>Not because typing the code yourself makes you special. Because understanding the work is what lets you use the tools without surrendering responsibility for the result.</p><p>AI can write code. That part is already settled.</p><p>The more interesting question is what kind of engineer you become once writing every line yourself is no longer the most valuable use of your time.</p><p>For me, the answer so far has been a broader one *Walks out Swagfully 😎*</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=71aa97e4f1f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Cached Everything. My GIF & sticker heavy app Rippit was still slow.]]></title>
            <link>https://medium.com/@docasio.dev/i-cached-everything-my-gif-sticker-heavy-app-rippit-was-still-slow-ffd0b26d520e?source=rss-220ff38d9062------2</link>
            <guid isPermaLink="false">https://medium.com/p/ffd0b26d520e</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[swiftui]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Daniel Ocasio]]></dc:creator>
            <pubDate>Mon, 31 Aug 2026 21:16:11 GMT</pubDate>
            <atom:updated>2026-08-31T21:16:11.471Z</atom:updated>
            <content:encoded><![CDATA[<h4>How GIF decoding, memory, and unnecessary work became the real bottleneck in my SwiftUI app Rippit</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IGUpUbUcdEi1GfrOAQf1Kw.png" /></figure><p>While working on performance improvements for my app <a href="https://apps.apple.com/us/app/rippit-twitch-emotes-gifs/id6741498615">Rippit</a>, an iOS app that displays large grids of GIFs, stickers, and emotes, I ran into a very noticeable and annoying lag when scrolling content.</p><p>The app can have a LOT of animated content on screen all at once. Users scroll through GIF grids, search results, favorites, recently sent content, and can do much of the same from an iMessage extension.</p><p>So when scrolling started feeling heavier than I wanted, my first thought was pretty straightforward:</p><blockquote><strong>The app must be doing too much network and file loading. Sooo Cache more of it!</strong></blockquote><p>And so I did.</p><p>Grid previews were cached. Full-quality GIFs had their own cache. I made sure full GIFs did not accidentally replace lightweight preview files. Content that had already been downloaded could be reused instead of fetched again.</p><p>Problem solved, right? Not exactly (Pain)🤠</p><p>Scrolling could still be expensive, particularly once a lot of animated content entered the picture.</p><p>It turned out I had optimized how quickly my app could <strong>get the GIF file</strong>, but not how expensive it was to actually <strong>display the GIF, </strong>and after a very joyous time testing with Xcode Instruments I realized THIS was my problem.</p><h3>A Cached File Is Not A Rendered Image</h3><p>My original mental model was roughly:</p><pre>Network<br>    ↓<br>Download GIF<br>    ↓<br>Cache GIF<br>    ↓<br>Display GIF</pre><p>Once the file was cached, I mentally considered most of the expensive work done.</p><p>In reality, the pipeline looked more like:</p><pre>Network<br>    ↓<br>Download compressed GIF<br>    ↓<br>Disk cache<br>    ↓<br>Read compressed data<br>    ↓<br>Decode frames<br>    ↓<br>Resize / prepare frames<br>    ↓<br>Hold decoded frames in memory<br>    ↓<br>Animate<br>    ↓<br>Render</pre><p>Caching only removed the first few steps. A cached GIF could still need to be opened, decoded frame by frame, prepared for display, held in memory, and animated.</p><p>For an image grid containing a bunch of animated GIFs, that becomes a very different performance problem. The GIF might only be a few hundred kilobytes sitting on disk, but once decoded, each frame effectively becomes raw pixel data.</p><h3>I Was Decoding Way More Image Than I Needed</h3><p>The next problem was image size. A GIF could have large source dimensions while being displayed inside a grid cell only around a fraction of that size.</p><p>There is very little benefit in decoding a full-resolution frame if the user is looking at it inside a small tile. Yet unless you deliberately avoid it, that is exactly the type of work an image pipeline can end up doing.</p><p>Conceptually, imagine:</p><pre>Source GIF: 1000 × 1000<br><br>Grid cell: ~300 × 300 pixels</pre><p>So instead of:</p><pre>Decode 1000 × 1000<br>    ↓<br>Store 1000 × 1000<br>    ↓<br>Render at 300 × 300</pre><p>I wanted the pipeline to be closer to:</p><pre>Decode near 300 × 300<br>    ↓<br>Store near 300 × 300<br>    ↓<br>Render at 300 × 300</pre><p>ImageIO makes this possible by creating thumbnail representations during decoding rather than fully decoding the source image and shrinking it afterward.</p><p>This is essentially what Rippit’s decoder now does:</p><pre>private static func downsampledFrame(<br>    source: CGImageSource,<br>    index: Int,<br>    targetPixelSize: CGFloat?<br>) -&gt; CGImage? {<br>    var options: [CFString: Any] = [<br>        kCGImageSourceShouldCacheImmediately: true<br>    ]<br><br>if let maxPixel = targetPixelSize {<br>        options[kCGImageSourceCreateThumbnailFromImageAlways] = true<br>        options[kCGImageSourceCreateThumbnailWithTransform] = true<br>        options[kCGImageSourceThumbnailMaxPixelSize] = maxPixel<br>        return CGImageSourceCreateThumbnailAtIndex(<br>            source,<br>            index,<br>            options as CFDictionary<br>        )<br>    }<br>    return CGImageSourceCreateImageAtIndex(<br>        source,<br>        index,<br>        options as CFDictionary<br>    )<br>}</pre><p>This sounds like a relatively small optimization until you remember that it applies to <strong>every frame of every GIF being decoded</strong>.</p><p>Reducing the dimensions of one image is nice. Reducing the dimensions of dozens of frames across multiple simultaneously visible GIFs is a much bigger W in my case 😎</p><h3>But Layout Creates Another Fun Problem</h3><p>There was one catch. Sometimes the GIF view begins loading before UIKit has finished determining its final size. So what exactly should I downsample to if:</p><pre>bounds.width == 0</pre><p>I ended up giving the decoder a reasonable fallback size for that early stage. Then once layout information was actually available, the view could calculate a more appropriate target from its bounds and display scale.</p><p>The real code looks like this:</p><pre>private var decodePixelSize: CGFloat {<br>    let size = max(bounds.width, bounds.height)<br><br>let scale =<br>        window?.traitCollection.displayScale<br>        ?? traitCollection.displayScale<br>    let pixelSize =<br>        size &gt; 0<br>        ? size * (scale &gt; 0 ? scale : 3)<br>        : 0<br>    return max(pixelSize, gifDecodeFallbackPixelSize)<br>}</pre><p>In my case, gifDecodeFallbackPixelSize is 320 pixels. I also track the resolution that the current GIF was decoded at. If the view eventually lays out significantly larger than that initial decode, it can be decoded again at a more appropriate size.</p><p>That gave me a good compromise. The UI did not need to wait around for perfect layout information before showing something, but I also was not permanently stuck with a blurry low-resolution fallback if the view ended up larger.</p><p>This became a recurring theme throughout the optimization work:</p><blockquote><strong>Performance doesn’t just mean doing the least work possible. It means doing the appropriate amount of work for the current situation.</strong></blockquote><p>✍️✍️✍️✍️✍️✍️</p><h3>Caching The Decoded Output</h3><p>Downsampling made each decode cheaper, but scrolling back to something I had just viewed could still mean decoding it again.</p><p>So the next step was caching the result of the expensive operation itself.</p><p>Instead of only:</p><pre>GIF file<br>    ↓<br>Disk Cache</pre><p>I added another layer:</p><pre>GIF file<br>    ↓<br>Decode + Downsample<br>    ↓<br>UIImage<br>    ↓<br>In-Memory Frame Cache</pre><p>Now when a GIF returns to the screen, the app can first ask: <em>“ Do I already have the decoded image for this file at this pixel size?”</em></p><p>If yes, it can immediately reuse it. Removing an entire decoding pass from the warm path.</p><p>I used NSCache here instead of treating the cache like permanent application state. That distinction matters because decoded images can consume a LOT of memory. Especially animated ones. NSCache gives the system room to evict objects under memory pressure, which becomes even more important inside an iMessage extension where I do not want to pretend memory is an unlimited resource (because its far from it in iMessage, ask me how I know 🤗)</p><h3>Don’t Animate What The User Cannot See</h3><p>There was another obvious-in-retrospect problem. <em>Why should a GIF continue animating when the user cannot even see it?</em></p><p>For animated GIFs, invisible work is still work. So I added viewport awareness. Each GIF grid cell now tracks whether it actually intersects the visible area of its enclosing scroll view.</p><p>When visible:</p><pre>Static Preview<br>    ↓<br>Decode Animated Frames<br>    ↓<br>Animate</pre><p>When it leaves the viewport:</p><pre>Stop Animation<br>    ↓<br>Return To Static Frame<br>    ↓<br>Don&#39;t Apply Animated Results That Are No Longer Relevant</pre><p>The distinction in that last step ended up being important. The GIF view tracks whether it currently wantsAnimating. If animated decoding finishes after the user has already scrolled away, the result is not blindly applied just because the background work happened to finish.</p><h3>Different Screens Do Not Need The Same Asset</h3><p>Another change was separating the quality needed for <strong>display</strong> from the quality needed for <strong>user actions</strong>.</p><p>A detail screen does not necessarily need to immediately download the highest-quality GIF available just because the user opened it.</p><p>So Rippit now has more explicit quality tiers:</p><pre>Grid<br>   → tiny <br><br>previewDetail<br>   → medium display GIF <br><br>Copy / Share / Favorite / Send<br>   → full-quality GIF</pre><p>The disk cache reflects that too. Instead of one ambiguous cached GIF, it keeps separate preview, medium, and full representations. That means opening a detail screen can load a lighter representation first.</p><p>Then when the user performs an action where quality actually matters, like copying, sharing, favoriting, or sending, the app can resolve the full-quality asset.</p><p>There is some nuance around favoriting from different surfaces; for example, a grid favorite can begin with the available preview and be upgraded in the background; but the general policy remains the same:</p><blockquote><strong>Do not pay for full quality until the workflow actually needs full quality.</strong></blockquote><p>That is much more efficient than treating every appearance of an asset as if it has the same requirements. It also reinforced another lesson for me:</p><blockquote><strong>Resource quality should follow user intent.</strong></blockquote><p>If someone is rapidly scrolling through 50 GIFs, optimizing for immediate lightweight previews makes sense. If they tap one and decide to send it, now quality matters more.</p><h3>The Bigger Lesson</h3><p>When I started this work, my thinking was:</p><blockquote><em>GIF scrolling is expensive. I should cache the GIFs.</em></blockquote><p>That was not wrong. It was just incomplete. The actual system had several different costs:</p><pre>Network<br>    ↓<br>Disk I/O<br>    ↓<br>Decode<br>    ↓<br>Image dimensions<br>    ↓<br>Memory<br>    ↓<br>Animation<br>    ↓<br>Persistence queries<br>    ↓<br>Rendering</pre><p>Improving only one stage can leave the actual bottleneck untouched. And sometimes fixing one bottleneck simply exposes the next one:</p><ul><li>Disk caching reduced network work.</li><li>Downsampling reduced decode and memory cost.</li><li>Decoded-image caching reduced repeated computation.</li><li>Accurate cache accounting prevented that optimization from quietly eating memory.</li><li>Viewport awareness stopped spending animation resources on invisible GIFs.</li><li>Background persistence queries removed unrelated work from the scrolling path.</li><li>Different asset qualities stopped full-resolution files from being used where lightweight versions were enough.</li></ul><p>None of these changes individually represent some magical makeScrollingFast() solution. The improvement came from treating performance as a pipeline.</p><h3>Final Thoughts</h3><p>The biggest thing I took away from optimizing Rippit’s GIF rendering was that <strong>“cached” and “cheap” are not the same thing</strong>.</p><p>A resource being local only tells you something about how expensive it is to retrieve. It tells you very little about how expensive it is to decode, transform, retain, animate, or render.</p><p>And this applies well beyond GIFs. Image-heavy social feeds, photo grids, video thumbnails, animated stickers, document previews, maps, or pretty much any interface processing media can run into the same mistake.</p><p>Do not stop the investigation when you find something that sounds expensive. Figure out where the application is actually spending the work!!</p><p>Because sometimes you cache everything…and your app is still slow 🙃</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ffd0b26d520e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building A Reliable Voice Command Feature With SpeechAnalyzer in iOS 26]]></title>
            <link>https://medium.com/@docasio.dev/building-a-reliable-voice-command-feature-with-speechanalyzer-in-ios-26-5e0ca6dae07c?source=rss-220ff38d9062------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e0ca6dae07c</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[swiftui]]></category>
            <dc:creator><![CDATA[Daniel Ocasio]]></dc:creator>
            <pubDate>Sat, 22 Aug 2026 16:53:20 GMT</pubDate>
            <atom:updated>2026-08-22T16:53:20.638Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong><em>How I turned constantly changing speech recognition results into predictable app behavior</em></strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Wec5T50WXzLi8WHZyL1gQ.png" /></figure><p>While building a hands-free voice command experience in an iOS app, I wanted users to be able to interact with the app without constantly needing to look at or touch their phone.</p><p>At first my idea seemed simple enough: Listen for a voice command, recognize what the user said, and call the appropriate function inside the app.</p><p>And the first version was actually pretty straightforward. Apple’s newer SpeechAnalyzer APIs make it surprisingly easy to get speech recognition working. Within a short amount of time, I had microphone audio flowing into the speech engine and transcription results coming back.</p><p>The hard part was everything after that (its always too good to be true when it feels easy 🫠).</p><p>Once you move from a demo into a real feature, speech recognition starts creating a lot of fun to solve problems. Users do not always say exactly one word and stop. They speak naturally. They might say a full sentence, the recognition engine might pick up extra words around the command, or the same spoken command might appear multiple times as the transcription updates.</p><p>For something like a voice command, those small issues become much bigger. A button being tapped twice is annoying. A voice command being triggered twice feels broken enough to delete the app (or throw your phone if you’re already having a bad day).</p><p>The challenge was not getting speech-to-text working. The challenge was turning speech recognition into uber-reliable application input.</p><h3>Speech Recognition Is Not a Command Stream</h3><p>My first instinct was probably the same approach many people would take:</p><p>Take the transcription result, check if it contains a command, and trigger the action.</p><p>Something like:</p><pre>if transcript.contains(&quot;command&quot;) {<br>    performAction()<br>}</pre><p>For a simple demo and a dev testing the happy path, this works.</p><p>The problem is that speech recognition results are not final events. They are continuously updated as the system gets more audio and improves its understanding of the users speech.</p><p>A user might say something like:</p><blockquote><em>“start…”</em></blockquote><p>and the recognizer may initially return:</p><pre>&quot;start&quot;</pre><p>Then after more context:</p><pre>&quot;start timer&quot;</pre><p>Then later:</p><pre>&quot;start the timer for my workout&quot;</pre><p>The speech framework is doing exactly what it should do. It is refining its understanding of the audio.</p><p>The problem is that my app does not care about every update. My app cares about whether the user actually issued a command. That distinction is important.</p><p>A transcription result answers:</p><blockquote><em>“What does the system currently think the user said?”</em></blockquote><p>It does not answer:</p><blockquote><em>“Should my app perform an action right now?”</em></blockquote><p>And therein lies the problem. If the user is speaking or someone around them is, and SpeechAnalyzer picks this up before or after a user issues a command, speech analyzer will keep refining its understanding of what it thinks the user said. Thus the potential to change the command word out, or return a long drawn out phrase where the command then takes 10+ seconds to register.</p><h3>Separating Speech Recognition From Command Execution</h3><p>The biggest architectural decision I made was separating the speech recognition layer from the command execution layer.</p><p>Instead of letting transcription results directly call app functions, I created a layer in between.</p><p>The flow became:</p><pre>Microphone<br>    ↓<br>Audio Processing<br>    ↓<br>SpeechAnalyzer<br>    ↓<br>Transcription Results<br>    ↓<br>Command Processing<br>    ↓<br>Application Action</pre><p>The <strong>speech layer</strong> is responsible for understanding the audio.</p><p>The command layer is responsible for deciding whether that speech should actually do something.</p><p>This separation made the system much easier to reason about because speech recognition is inherently uncertain. The application still needs a way to turn that uncertainty into predictable behavior.</p><h3>Preventing Duplicate Commands</h3><p>The first major issue I ran into was duplicate command execution.</p><p>SpeechAnalyzer provides updated results as it processes audio. The same spoken phrase can appear multiple times while the transcription is being refined.</p><p>If you simply check every transcription update, a single command can accidentally execute multiple times. The first thought might be to track the text itself. The problem is that the text changes.</p><p>The better solution was tracking the audio range associated with the result.</p><p>SpeechAnalyzer provides timing information for the recognized audio, which allows the app to know whether it has already handled that section of audio. Conceptually:</p><pre>if result.range.start &lt; committedThrough {<br>    return<br>}</pre><p>Once a command has been handled, that range is committed:</p><pre>committedThrough = result.range.end</pre><p>and finalized:</p><pre>try await analyzer.finalize(through: time)</pre><p>Now future transcription updates cannot cause the same audio to trigger another command. ‘Victory at last’ moment for me right there 🙌</p><p>This was probably the biggest mindset shift for me when working with SpeechAnalyzer: <strong>The recognized text is not the source of truth. The audio timeline is.</strong></p><h3>Handling Commands Inside Natural Speech</h3><p>Another challenge was that users do not always speak in isolated commands. A voice command system has to work with normal speech patterns.</p><p>A command might appear in the middle of a sentence. The recognizer might include words before or after it. Background noise can affect what gets recognized.</p><p>SpeechAnalyzer does provide ways to improve recognition by giving it more context. For example, I was able to provide contextual phrases:</p><pre>context.contextualStrings = [<br>    .general: VoiceCommandParser.contextualPhrases<br>]</pre><p>This helps the recognizer better understand the vocabulary that matters to the application. However, this does not replace application-side handling. The app still needs to decide what should actually trigger behavior.</p><h3>Preparing SpeechAnalyzer For Real Usage</h3><p>One thing that is easy to overlook is that speech recognition has setup requirements that does require accounting fora few user side factors <strong>*Sigh* fun 🫩</strong></p><p>Before starting a recognition session, the app needs to handle things like:</p><ul><li>Is SpeechAnalyzer available?</li><li>Is the user’s locale supported?</li><li>Is the required model installed?</li><li>Can the model be prepared ahead of time?</li></ul><p>The implementation I ended up with prepares the model separately so the first voice interaction is not also the first time the app has to set everything up. So the flow becomes:</p><pre>App Starts<br>    ↓<br>Prepare Speech Resources<br>    ↓<br>User Enables Voice Commands<br>    ↓<br>Start Listening</pre><p>This makes the feature feel much more immediate &amp; available which is imperative to me when it comes to UX polish.</p><h3>The Microphone Is Its Own Problem</h3><p>After getting the speech recognition working, the next problems were less about SpeechAnalyzer and more about everything around it. <strong>The</strong> <strong>microphone is a shared system resource.</strong></p><p>So this brings up problems not with speech recognition itself, but problems with the microphones reliability in general. A production implementation needs to handle cases like:</p><ul><li>microphone permission being denied</li><li>speech recognition permission being denied</li><li>audio session interruptions <strong>(like if the user gets a call)</strong></li><li>input route changes</li><li>restarting recognition after failures</li></ul><p>Starting recognition is the easy part. Recovering correctly is where the real joyous work comes in.</p><h3>Final Thoughts</h3><p>Working with SpeechAnalyzer taught me that speech recognition is only one part of building a reliable voice experience. Getting text back from the microphone is the easy part.</p><p>The difficult part is taking an input source that is constantly changing and turning it into <strong>predictable application behavior.</strong></p><p>Users do not think about transcription updates, audio ranges, or recognition states. They just expect that when they speak, the app understands what they meant (And if does not may be sent into a rage large enough to delete the app and dare I say it, leave a bad review 🫪)</p><p>SpeechAnalyzer provides the ability to understand speech. The rest of the engineering is making that understanding reliable enough that users can trust it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e0ca6dae07c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>