<?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[Livefront - Medium]]></title>
        <description><![CDATA[Thoughts from the Livefront team - Medium]]></description>
        <link>https://medium.com/livefront?source=rss----75a105744d9a---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Livefront - Medium</title>
            <link>https://medium.com/livefront?source=rss----75a105744d9a---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 25 Nov 2026 02:16:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/livefront" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com" rel="hub"/>
        <item>
            <title><![CDATA[Delete account? This action cannot be un…]]></title>
            <link>https://medium.com/livefront/delete-account-this-action-cannot-be-un-3522e4983966?source=rss----75a105744d9a---4</link>
            <guid isPermaLink="false">https://medium.com/p/3522e4983966</guid>
            <dc:creator><![CDATA[Huy Mai]]></dc:creator>
            <pubDate>Mon, 09 Nov 2026 17:02:08 GMT</pubDate>
            <atom:updated>2026-11-09T17:02:06.334Z</atom:updated>
            <content:encoded><![CDATA[<h4>Designing for Dynamic Type in your iOS App</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fqNoG0XQ9C33vGbQ9vo79g.png" /></figure><p>That last word was “undone,” but you probably filled it in without giving it a second thought. In this case, it was pretty simple. You’ve probably seen that dialog a hundred times; in many other instances, your users won’t always have that advantage.</p><p>Many truncated strings in a real world app are unfamiliar territory for users. They can be product names, a price total, or an important notice that cannot be missed.</p><p>The title above is what happens when a user turns up their text size in an app that was never designed for it. The sentence still renders, but it’s original meaning now changes or is completely lost.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PwOqnDC7HvOh45-Bnb7lgA.png" /><figcaption>Subscription splash screen in the Citizen App at AX5.</figcaption></figure><p>This is the splash screen you are met with when you open the Citizen App. You are prompted to subscribe to premium, <em>but you can’t fully see the prices.</em></p><p>There’s a secondary option to “Subscribe with A….”</p><p><em>Subscribe with what exactly?</em></p><p>You decide this is too much information, yet too little at the same time, so you want to close this sheet.</p><p><em>Too bad, the close button is just off the screen at the top, and you can’t scroll the page.</em></p><p>This is not a bug from a fringe user. This is a simple device setting that <a href="https://appt.org/en/stats/font-size">roughly a fourth of people turn on and never turn off</a>.</p><p>Designers can and will spend hours iterating on a design, perfecting the interactions and experience at the default text size. But the moment someone opens the app with larger text enabled, the carefully designed app falls apart. Buttons clip their labels, two-column layouts crush into slivers, and a title truncates to three words and an ellipsis.</p><p>The solution to this problem isn’t hard. Intentionality and a set of working habits are all you need to stop producing screens that break. This article explains what Dynamic Type actually is, why it deserves more attention than it usually gets, and how to design for it without doubling your work.</p><h3>What is Dynamic Type?</h3><p>Dynamic Type is an iOS system-level setting that allows users to choose their text size. This can be device-wide or at an individual application level.</p><p>According to the World Health Organization <a href="https://www.who.int/news-room/fact-sheets/detail/blindness-and-visual-impairment">at least 2.2 billion people globally have a near or distance vision impairment</a>. Impairment is also not something that you either have or you don’t have. The single largest contributor, which accounts for 826 million people, is presbyopia, the far-sightedness typically seen in the aging population.</p><p>Scalable type allows your app to be usable for people who need text sizes beyond the default. Support for Dynamic Type may mean the difference between someone being able to use the app at all and someone else closing and deleting it entirely.</p><p>Beyond accessibility, scalable type also allows for user preference. Plenty of users will increase type size to make text more legible. Others may go in the opposite direction and shrink text to see more content. Supporting Dynamic Type benefits all users, not just those with vision impairments. Users make a choice by setting their desired text size — it’s important that we honor that choice.</p><h3><strong>How can we design for it?</strong></h3><h4><strong>Start with the default scale</strong></h4><p>Apple’s default typography automatically supports Dynamic Type. You can reference the typography portion of Apple’s <a href="https://developer.apple.com/design/human-interface-guidelines/typography#Specifications">Human Interface Guidelines</a> to see how each semantic style changes between sizes.</p><p>If you’re building your design system in Figma from scratch, you can copy the text styles directly from the <a href="https://www.figma.com/community/file/1651309003795292092/ios-and-ipados-27">iOS and iPadOS UI Kit community file</a>.</p><p>By no means do you need to stick to the default scale. But as scaling is not proportional, keeping Apple’s semantic naming tells the system how to properly scale your title versus your caption. If your library needs an additional text style, annotate the nearest default style. This will allow your custom style to still scale at a proper rate.</p><h4><strong>Build flexible layouts</strong></h4><p>Nothing that contains text should have a fixed height. Containers should hug their content and let their content push them.</p><p>Favor vertical stacking over horizontal stacking. Two elements that work side by side at default sizing may no longer work at AX5. If elements need to be horizontally stacked, determine and annotate what happens when they can no longer do so — typically they become vertically stacked.</p><p>In Figma, use auto-layout on all containers. Ensure there are not fixed values — Figma can sometimes quietly convert settings if there are elements trying to reference each other.</p><h4><strong>Maintain hierarchy beyond size</strong></h4><p>Because headings grow slower than body text, type size becomes less of a distinguishing factor at higher accessibility sizes This can be factors like weight, color or opacity, spacing, or even a visual divider. These will continue to communicate hierarchy when type size does not.</p><p>As a litmus test, set all your text sizes in Figma to their AX3 value (or higher). If you can’t tell what’s a heading anymore, there needs to be a stronger hierarchy.</p><h4><strong>Deliberately choose wrapping over truncation</strong></h4><p>Setting a text layer to truncate at default sizing typically reads fine. At AX5, the same truncation may show a handful of characters in a much longer message. Avoid using truncation unless there is a separate view where the full information can be seen.</p><p>Truncation still may be the correct choice in certain applications, but it should be a conscious decision, not an accident. For example, a table row may become 10 lines tall if text is set to wrap. If you are using truncation, you should know how much you are hiding at the largest sizes. Stress test your truncation at larger sizes to see what information is being lost.</p><h4><strong>Remember what doesn’t scale on its own</strong></h4><p>SF Symbols, Apple’s native icon library, scales automatically alongside the text style they’re paired with. Custom icons and raster images don’t, unless explicitly defined. Without that, you get 53pt text sitting next to a 16pt icon. Annotate which elements should grow.</p><p>Padding stays constant unless defined otherwise. Screen margins don’t grow, but a gap sometimes should. Annotate these changes intentionally.</p><h4><strong>Know what iOS handles for you</strong></h4><p>You don’t have to worry about everything. Native components like tab bar items, navigation bar items, toolbar items, and the status bar are examples of instances that don’t scale at larger accessibility sizes. Instead, iOS shows a Large Content Viewer: a full-screen HUD with the item’s icon and label when you touch and hold it. You’ll never need to take extra time designing a five-tab bar at AX5 because it will never render that way.</p><p>Other native components scale and reflow on their own. Alerts restack their buttons vertically when they no longer fit side by side. Large navigation titles collapse to the inline title. Menus scale and become scrollable. In SwiftUI, label-value rows in a List or Form stack vertically at accessibility sizes without anyone asking them to.</p><p>It’s important to note that this only holds true for native components. A hand-built row or a custom tab bar inherits none of it, which is worth considering the next time you are debating to build a custom component.</p><h3><strong>Testing Your Designs</strong></h3><h4><strong>Design at 4 sizes, not 1</strong></h4><p>Default, xxxL, AX5, and xSmall. xxxL and xSmall allow you to check behavior at both ends of the default type scale, while AX5 is the true stress test.</p><h4><strong>Use the smallest supported device</strong></h4><p>An iPhone SE has much less screen real estate than an iPhone 17 Pro Max. Smaller screens with AX5 will allow you to test the worst-case scenario a user could face.</p><h4><strong>Use real content</strong></h4><p>Always use realistic content over placeholder text like Lorem Ipsum. Finding and testing with the longest realistic string you can find helps determine where your designs fall short.</p><p>In Figma, Apple’s default text styles already have Dynamic Type built-in. Adjusting the Dynamic Type mode will let the text automatically resize.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZymOwIgJDHUjn9yScE3sYA.png" /><figcaption>Adjust the Dynamic Type mode in Figma.</figcaption></figure><h3><strong>Handoff</strong></h3><p>Annotate and use semantic text styles, not pixel values. “Headline” tells an engineer everything, whereas “17pt semibold” only gets you the default sizing.</p><p>Flag what’s expected to grow and what’s fixed. If you want icons to scale with a label, say so. If an avatar should stay at 48pt regardless, note that too. Any changes, or lack thereof, should be noted explicitly and intentionally.</p><p>When reviewing designs in a real build, make sure you check sizes beyond the default: real text, real content, and real devices.</p><p>Do all these things and users will thank you. People make an intentional choice to set a text size that works for them on their devices. For many of them, this is not just a choice, it’s a necessity. It’s important to be intentional about honoring that.</p><p>None of this is foreign. It’s mostly auto layout discipline, honest content, and the intentionality and commitment to look at your work at a size beyond the default.</p><p>The screens you make will get used by people whose settings you’ll never see. Design for them.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3522e4983966" width="1" height="1" alt=""><hr><p><a href="https://medium.com/livefront/delete-account-this-action-cannot-be-un-3522e4983966">Delete account? This action cannot be un…</a> was originally published in <a href="https://medium.com/livefront">Livefront</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Good Product Design Comes From Iteration, Not Perfection]]></title>
            <link>https://medium.com/livefront/good-product-design-comes-from-iteration-not-perfection-33d31e175150?source=rss----75a105744d9a---4</link>
            <guid isPermaLink="false">https://medium.com/p/33d31e175150</guid>
            <dc:creator><![CDATA[Mitch Myers]]></dc:creator>
            <pubDate>Mon, 09 Nov 2026 16:57:59 GMT</pubDate>
            <atom:updated>2026-11-09T16:57:57.501Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YOPsSHeXpXIV-B-yn9X_FA.png" /></figure><p>The cleaning spray Formula 409 is said to have gotten its name from the 409th batch its inventors tested. James Dyson built 5,127 prototypes over five years before he had a bagless vacuum that actually worked. Thomas Edison is often credited with saying he never failed, he just found ten thousand ways that wouldn’t work.</p><p>The usual lesson here is that progress rarely arrives fully formed, and that’s true. But there’s a better one underneath it: none of these stories actually ended. Formula 409 didn’t stop at batch 409, and Dyson didn’t stop at 5,127. The light bulb kept changing long after Edison stopped counting, from filament to fluorescent to LED, until the thing on your ceiling has almost nothing in common with the thing he patented.</p><p>Product design works the same way. Iteration isn’t the step that happens after the design work. In a lot of ways, iteration is the design work, and in our field it’s the expectation. Our work is never really done. Not after you ship the product, not after it’s out in front of real users, and not even after it earns rave reviews in the App Store. Shipping is a milestone, not a finish line.</p><h3>The only constant is change</h3><p>Digital products live in a world that refuses to hold still. Technologies shift, expectations rise, and tastes turn over. Competitors show up with better ideas, and behaviors that felt novel last year become the ones users assume by default. Products that don’t evolve get left behind by the ones that do. Consider the Netflix iPhone app when it launched in 2010.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4rI7PM8_PTSayky4lRMfdw.png" /></figure><p>A talented team got paid a lot of money to build that, and at the time, they earned it. This wasn’t a careless first pass. It went through its own rounds of design, iteration, testing, and approval. More importantly, people were thrilled with it. TechCrunch opened its launch coverage with “Oh, man. It’s here.” Subscribers could suddenly stream movies and shows on a phone over Wi-Fi or 3G, and in 2010 that felt like magic.</p><p>That reaction is what sticks with me. We look at that interface now and clock its limitations instantly, but people in 2010 looked at the same screen and saw the future. It was a good app then, and it would be an unusable one today, even though the design itself never changed. The world around it did.</p><p>Netflix’s mobile experience wouldn’t have stayed competitive if the team had celebrated the launch, declared the app finished, and walked away. It had to keep pace with its users, its catalog, its competition, and the devices it ran on. Here’s how the app looks today.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FpbydgTCVrKb6SptkX-OAA.png" /></figure><p>At the time of writing, the Netflix iOS app holds a 4.7-star rating from more than seven million users and ranks twelfth in the App Store’s entertainment category. A very solid app, one might say. But there’s still no such thing as perfect. Even at five stars, even with all seven million reviewers somehow universally satisfied, there would be room to make it better. A perfect rating only describes one group of users at one moment, and the moment passes. Expectations move, and the product has to move with them.</p><p>I’d bet the Netflix app changes as much over the next sixteen years as it did between 2010 and 2026. Technology will change, sure, but so will our tastes. New apps will show up, new ideas will land, and new behaviors will become second nature. What feels modern today will eventually feel dated, and that’s just the life cycle of a product.</p><h3>Failure is baked into the work</h3><p>Product designers have to get comfortable with that, because failure is built into the job, and that’s not a bad thing. It’s part of the process. No design you make will stand unchanged, and even getting to version one takes an enormous amount of failure, or more accurately, an enormous amount of exploration that never reaches a user. Open one of your Figma files and count the screens you made before you landed on the one that shipped. If you really want to drive yourself crazy, use a plugin to count every layer in the file, then compare that number to the layers in the screens that actually went out. Don’t be surprised when the percentage is tiny.</p><p>Those unused screens and discarded layers aren’t waste. They’re the record of every decision that produced the finished thing, and each one taught you something about what worked, what didn’t, and what the product could become.</p><p>And even the screens labeled “final” are only final for now. A requirement changes, a user surfaces a problem you didn’t know you had, a competitor introduces a better pattern, or a new technology makes yesterday’s constraint irrelevant. The design that felt complete this morning may need to change by next quarter, and if the product is going to keep up, it will.</p><h3>Iteration is not change for change’s sake</h3><p>All of that said, there’s one thing worth holding onto: iteration and change are not the same thing. Don’t redesign a product because the current version has been around a while, or because a new visual trend is making the rounds. Constant motion isn’t the same as progress, and sometimes the right design decision is to leave something alone.</p><p>Snapchat’s 2018 redesign is the example everyone reaches for, and it earned the reputation. A Change.org petition calling on the company to reverse it drew more than 1.2 million signatures. After first-quarter results showed sharply slowing user growth and revenue pressure that Snap partly attributed to the redesign, its stock fell as much as 22 percent to its lowest level since the IPO, wiping roughly $4 billion from the company’s market value. The following quarter brought Snapchat’s first reported decline in daily users, which Snap also blamed largely on the redesign. The company eventually reversed parts of it.</p><p>What makes it instructive, though, is that the redesign wasn’t aimless. Snap had reasons: separate friends from publishers, make the app easier for a mainstream audience to understand, and give advertisers a better home. Those are real goals, but they weren’t user problems. The team could answer what would be better for the business without being able to answer what would be better for the person holding the phone. And that’s the whole point. You need a purpose for iteration, so ask:</p><ul><li>What problem are we solving for our user?</li><li>What evidence do we have that it’s a real problem?</li><li>What would actually be better for them?</li></ul><p>Then test, because that feedback loop is the crucial part. Build something, put it in front of people, watch what happens, and let what you learn shape the next version. User testing is largely the experience of watching your own failures surface in real time, and that’s a good thing.</p><p>Signal comes from a lot of places: usability sessions, analytics, App Store reviews, support tickets, accessibility audits, and conversations with the people who use the product every day. But not every signal calls for a redesign, because smoke isn’t always fire. Users will ask for contradictory things, data will tell you what’s happening without telling you why, and a newer pattern can look exciting and still make the experience worse, depending on who you’re building for. A product may never be finished, but every change still has to earn its place.</p><h3>Made to persist</h3><p>“We are made to persist. That’s how we find out who we are.” I’ve always liked that line from Tobias Wolff. My wife and I keep a little block with about a hundred interchangeable quotations on it, and this one has been up for a while now. One day it’ll change too.</p><p>I’ve been thinking about it a lot lately. Persistence is how we find out who we are, but it’s also how we find out what the things we build can become. That feels worth remembering right now, when the industry, the tools, and the job itself seem to change every week. We persist by continuing to learn, question, test, and adapt, and the products we make have to do the same.</p><p>No product is ever complete, and no product is ever perfect. Good design comes from iteration. So go build something. Test it. Break it. Build it better.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33d31e175150" width="1" height="1" alt=""><hr><p><a href="https://medium.com/livefront/good-product-design-comes-from-iteration-not-perfection-33d31e175150">Good Product Design Comes From Iteration, Not Perfection</a> was originally published in <a href="https://medium.com/livefront">Livefront</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Composable Testing with Custom Semantic Properties]]></title>
            <link>https://medium.com/livefront/composable-testing-with-custom-semantic-properties-2acc7337ac2c?source=rss----75a105744d9a---4</link>
            <guid isPermaLink="false">https://medium.com/p/2acc7337ac2c</guid>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[semantics]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[jetpack-compose]]></category>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[Garrett Schafer]]></dc:creator>
            <pubDate>Wed, 07 Oct 2026 18:32:40 GMT</pubDate>
            <atom:updated>2026-10-07T18:32:39.223Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EA2zuwCS1Xx9uOfeRRDcog.png" /></figure><p>Compose’s semantics give us a great starting point for writing UI tests. With existing and <a href="https://livefront.com/writing/building-better-tests-with-compose-semantics/">custom filters, finders, and assertions</a>, we can test many of the properties that already exist in the semantics tree. Beyond that, you may be tempted to start adding testTag modifiers. Test tags are easy to add and make composables easy to locate in the semantics tree during a UI test, however they only provide an identifier and not any other information about a component’s state. There are better ways to add additional information to the semantic tree for better UI tests through the use of completely custom semantic properties.</p><h4>Custom Semantic Properties</h4><p>Let me set the scene with an example. Imagine you have a component that’s basically a status indicator. This indicator could include an icon followed by some text. Something like, “Success”, “Warning”, “Error”, etc. You could add a content description to the icon and leave the icon and text not semantically merged, but that would result in a worse accessibility experience for the user. So normally in this case you would merge the text and icon semantically, negating the need for a content description on the icon itself because the text it is now merged with provides that context. Then, other than the text, there’s no real way to test what icon is visible in your tests. That’s where a custom semantic property could come in handy.</p><p>Imagine having a sealed class for all your icons, with data objects for each icon and a shared composable to render said icons, something like this.</p><pre>sealed class MyIcon(<br>    @DrawableRes val id: Int,<br>) {<br>    sealed class Status(@DrawableRes id: Int) : MyIcon(id) {<br>        // MyIcon.Status.Success icon object<br>        data object Success : MyIcon(R.drawable.ic_status_success)<br><br>        // MyIcon.Status.Warning icon object<br>        data object Warning : MyIcon(R.drawable.ic_status_warning)<br><br>        // MyIcon.Status.Error icon object<br>        data object Error : MyIcon(R.drawable.ic_status_error)<br>    }<br><br>    // Composable to render icon, ie; MyIcon.Status.Success.ToIcon()<br>    @Composable<br>    fun ToIcon(<br>        modifier: Modifier = Modifier,<br>        contentDescription: String? = null,<br>        tint: Color = Color.Unspecified,<br>    ) {<br>        Icon(<br>            modifier = modifier,<br>            painter = rememberVectorPainter(id = id),<br>            contentDescription = contentDescription,<br>            tint = tint,<br>        )<br>    }<br>}</pre><p>To start, you can create your own semantic property that you put on all your icon composables that then could be tested against. To create a semantic property, you need both a SemanticsPropertyKey and a SemanticsPropertyReceiver. So for your icons, it would look something like this.</p><pre>val MyIconPropertyKey = SemanticsPropertyKey&lt;MyIcon&gt;(&quot;MyIcon&quot;)<br><br>var SemanticsPropertyReceiver.myIcon by MyIconPropertyKey</pre><p>You could then add a semantic modifier on your icons to set that property to the icon object. Something like this</p><pre>// icon: MyIcon<br>modifier = modifier.semantics { myIcon = icon }</pre><p>You could even create a modifier extension to more easily set the property.</p><pre>fun Modifier.myIcon(icon: MyIcon): Modifier = this.semantics {<br>    myIcon = icon<br>}</pre><p>And then setting the property on the icon would look like so.</p><pre>modifier = modifier.myIcon(icon)</pre><p>Which is much cleaner in my opinion.</p><h4>Testing Your Custom Property</h4><p>Once this is all set up, you can create a filter, finder, and assertion just like any other semantics property to make your tests super clean and easy to write. As an example, the filter, finder, and assertion for your icon property would look like so.</p><pre>// Filter<br>fun hasIcon(<br>    icon: MyIcon,<br>): SemanticsMatcher = SemanticsMatcher.expectValue(MyIconPropertyKey, icon)<br><br>// Finder<br>fun SemanticsNodeInteractionsProvider.onNodeWithIcon(<br>    icon: MyIcon,<br>    useUnmergedTree: Boolean = false,<br>): SemanticsNodeInteraction = onNode(hasIcon(icon), useUnmergedTree)<br><br>// Assertion<br>fun SemanticsNodeInteraction.assertHasIcon(<br>    icon: MyIcon,<br>): SemanticsNodeInteraction = assert(hasIcon(icon))</pre><p>You could then write your tests with something like this</p><pre>composeTestRule<br>  .onNodeWithText(&quot;Success&quot;)<br>  .assertHasIcon(MyIcon.Status.Success)<br>composeTestRule<br>  .onNodeWithText(&quot;Warning&quot;)<br>  .assertHasIcon(MyIcon.Status.Warning)<br>composeTestRule<br>  .onNodeWithText(&quot;Error&quot;)<br>  .assertHasIcon(MyIcon.Status.Error)<br><br>// or <br>composeTestRule<br>  .onNodeWithIcon(MyIcon.Status.Success)<br>  .assertIsDisplayed()<br>composeTestRule<br>  .onNodeWithIcon(MyIcon.Status.Warning)<br>  .assertIsDisplayed()<br>composeTestRule<br>  .onNodeWithIcon(MyIcon.Status.Error)<br>  .assertIsDisplayed()</pre><p>This could be done with test tags, but I think this looks much cleaner. As long as properties are kept small in size, this shouldn’t add any more overhead or performance impact then a testTag. In the example above, adding the MyIcon object is relatively safe because it’s just an object with a @Drawable Int. I’d avoid setting large objects as property values. The larger the property value, the larger the semantic tree, which could affect accessibility. For that reason I try to use this sparingly and in cases that could benefit from this kind of extra testing when it makes sense (and no different than when you’d use a testTag to test).</p><h4>Merge Policy</h4><p>One thing that your custom semantic property does that the testTag does not do is merge semantically. The <a href="http://compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/platform/TestTag.kt">TestTagNode</a> that inherits from SemanticsModifierNode has its shouldMergeDescendantSemantics set to false. This means that in your tests, to find a testTag of a child you need to use an unmerged tree. This is not the case for your property. Let me show you some examples of some simple semantic trees.</p><pre>// using merged tree, test tag only<br>Node #1 at (l=0.0, t=0.0, r=320.0, b=68.0)px<br> |-Node #2 at (l=16.0, t=16.0, r=304.0, b=52.0)px<br>   Text = &#39;[Success]&#39;<br>   Actions = [ClearTextSubstitution, GetTextLayoutResult, SetTextSubstitution, ShowTextSubstitution]<br>   MergeDescendants = &#39;true&#39;<br><br>// using unmerged tree, test tag only<br>Node #1 at (l=0.0, t=0.0, r=320.0, b=68.0)px<br> |-Node #2 at (l=16.0, t=16.0, r=304.0, b=52.0)px<br>   MergeDescendants = &#39;true&#39;<br>    |-Node #3 at (l=16.0, t=16.0, r=41.0, b=40.0)px, Tag: &#39;Success Test Tag&#39;<br>    |-Node #4 at (l=57.0, t=16.0, r=304.0, b=52.0)px<br>      Text = &#39;[Success]&#39;<br>      Actions = [ClearTextSubstitution, GetTextLayoutResult, SetTextSubstitution, ShowTextSubstitution]<br><br>// using merged tree, icon semantic property only<br>Node #1 at (l=0.0, t=0.0, r=320.0, b=68.0)px<br> |-Node #2 at (l=16.0, t=16.0, r=304.0, b=52.0)px<br>   MyIcon = &#39;Success&#39;<br>   Text = &#39;[Success]&#39;<br>   Actions = [ClearTextSubstitution, GetTextLayoutResult, SetTextSubstitution, ShowTextSubstitution]<br>   MergeDescendants = &#39;true&#39;<br><br>// using merged tree, icon semantic property, and test tag<br>Node #1 at (l=0.0, t=0.0, r=320.0, b=68.0)px<br> |-Node #2 at (l=16.0, t=16.0, r=304.0, b=52.0)px<br>   MyIcon = &#39;Success&#39;<br>   Text = &#39;[Success]&#39;<br>   Actions = [ClearTextSubstitution, GetTextLayoutResult, SetTextSubstitution, ShowTextSubstitution]<br>   MergeDescendants = &#39;true&#39;<br><br>// using unmerged tree, icon semantic property, and test tag<br>Node #1 at (l=0.0, t=0.0, r=320.0, b=68.0)px<br> |-Node #2 at (l=16.0, t=16.0, r=304.0, b=52.0)px<br>   MergeDescendants = &#39;true&#39;<br>    |-Node #3 at (l=16.0, t=16.0, r=41.0, b=40.0)px, Tag: &#39;Success Test Tag&#39;<br>      MyIcon = &#39;Success&#39;<br>    |-Node #4 at (l=57.0, t=16.0, r=304.0, b=52.0)px<br>      Text = &#39;[Success]&#39;<br>      Actions = [ClearTextSubstitution, GetTextLayoutResult, SetTextSubstitution, ShowTextSubstitution]</pre><p>Something you might be wondering about is what happens if you merge multiple children with your custom semantic property together. I had the same question. While in the example above, it doesn’t make the most sense to have multiple decorative icons on the same semantic node, it can happen. Imagine a more complicated card component with multiple icons whose meaning is communicated using things like selected, disabled, or stateDescription properties on the parent, again negating any need for a content description on said icons.</p><p>By default, the property takes the parent’s value. So if you have two icons, it’ll merge in the first icon property, giving the parent that property, and then by the time it gets to the second child, the parent property will be set and the child property will be ignored. We can change this behavior by changing the semantic property from a MyIcon object, to a List&lt;MyIcon&gt; and then using the mergePolicy to combine these properties into one list. First, your SemanticsPropertyKey would need updating like so</p><pre>val MyIconPropertyKey = SemanticsPropertyKey&lt;List&lt;MyIcon&gt;&gt;(<br>  name = &quot;MyIcon&quot;,<br>  mergePolicy = { parent, child -&gt;<br>    parent.orEmpty() + child<br>  }<br>)</pre><p>Then you’d want to update your Filter to something like the following.</p><pre>fun hasIcon(<br>  icon: MyIcon,<br>): SemanticsMatcher {<br>  return SemanticsMatcher(<br>    &quot;${MyIconPropertyKey.name} contains &#39;${icon}&#39;&quot;,<br>  ) { node -&gt;<br>    node.config<br>      .getOrNull(MyIconPropertyKey)<br>      ?.contains(icon)<br>      ?: false<br>  }<br>}</pre><p>Then if you merge multiple icon property children together, your tree would look something like this</p><pre>Node #1 at (l=0.0, t=0.0, r=320.0, b=68.0)px<br> |-Node #2 at (l=16.0, t=16.0, r=304.0, b=52.0)px<br>   MyIcon = &#39;[Error, Disabled]&#39;<br>   Text = &#39;[Error]&#39;<br>   Actions = [ClearTextSubstitution, GetTextLayoutResult, SetTextSubstitution, ShowTextSubstitution]<br>   MergeDescendants = &#39;true&#39;</pre><p>I don’t typically do this with my custom properties. I haven’t run into a case where multiple children with the same property are merged, but I just wanted to let you know that this is an option. I think if you’re going this route, you should have a good reason, although I understand that it does seem tempting to make every property a list so you don’t lose any semantic information from child nodes.</p><p>Custom semantic properties give us a way to add additional, meaningful information about the state of a composable to our semantics tree. They should be used intentionally when the built-in properties just aren’t enough and add additional context to help write more robust UI tests. The icon and status indicator examples are just two potential use cases, but I’m curious to hear where else this approach could be useful. If you’ve used custom semantic properties in the past or have ideas for how you’d use this, I’d love to hear about it in the comments.</p><p><em>Garrett works at Livefront, where the difference between good code and great code isn’t just semantics.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2acc7337ac2c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/livefront/composable-testing-with-custom-semantic-properties-2acc7337ac2c">Composable Testing with Custom Semantic Properties</a> was originally published in <a href="https://medium.com/livefront">Livefront</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Becoming the Ultimate Design Collector]]></title>
            <link>https://medium.com/livefront/becoming-the-ultimate-design-collector-6a3e4ce56445?source=rss----75a105744d9a---4</link>
            <guid isPermaLink="false">https://medium.com/p/6a3e4ce56445</guid>
            <category><![CDATA[tips-and-tricks]]></category>
            <category><![CDATA[product-design]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[designer]]></category>
            <category><![CDATA[ux-design]]></category>
            <dc:creator><![CDATA[Christian Spaulding]]></dc:creator>
            <pubDate>Wed, 23 Sep 2026 16:47:40 GMT</pubDate>
            <atom:updated>2026-09-23T16:47:39.151Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C_a0rxKTKeLuFLGB0Hi1aw.png" /></figure><p>One of my favorite things to do is buy a new LEGO set. My latest build was the <em>Back to the Future</em> DeLorean with Marty and Doc. Whenever someone sees my collection, the reaction is usually the same: “Dang, that’s <em>a lot </em>of LEGOs,” followed by a jealous sound, “that’s cool”.</p><p>It used to take me hours just to build a tiny set. Now? I can knock one out in 20 or 30 minutes. The pieces are the same, but after years of collecting, I spot patterns. I know how it all fits together.</p><p>Design can be the same way.</p><p>When I first started in product design, I was the jealous one. How the heck did they make that? Where are they getting those beautiful mockups? Did they make them from scratch? The reveal was always the same — they didn’t <em>entirely</em> start from scratch. They had a collection of patterns, components, and inspiration they drew from.</p><p><strong>Starting a new project? </strong>You want to make something original. Nobody wants to feel like a copycat.</p><p>But here’s the thing: most digital products use similar patterns. Jakob’s Law states that “Users spend most of their time on other sites. This means that users prefer your site to work the same way as all the other sites they already know.”</p><p>I collect things like nav bars, search, cards, feeds, forms, and other common design elements. You can organize these by bookmarking them, favoriting them in Figma or whatever software you use, saving them to a folder on your computer, or by organizing them in a Figma file with elements. The creativity isn’t in making an innovative new navigation structure that nobody has seen before. It’s in how you use what’s already there to shape the user’s experience.</p><p>Take streaming platforms. They share many similarities: hero banners, content rails, thumbnails, search. What actually makes them different? Branding, motion, content, strategy.</p><p>If every platform tried to be ‘innovative’ and did things in totally different ways, users would lose their minds. People need patterns. It’s why every grocery store has the same basic layout. Familiarity makes life easier.</p><p><strong>What’s the benefit of collecting?</strong> When you start thinking like a collector, everything speeds up.</p><p>You can kick off designs and entire work streams faster because you’re not staring at a blank canvas, wondering where to begin. You already have patterns, components, and references you trust. Instead of inventing things that may not make sense, you’re refining them to fit your project.</p><p>You also feel more inspired when building. Momentum replaces hesitation. There’s a different energy when you’re assembling strong pieces instead of scrambling to create every single one from scratch.</p><p>And maybe most importantly, you’re constantly learning from designers with far more experience than you. Every pattern you reuse has been debated, improved, and shipped in the real world. Every product is different and has different users, so testing these collected items in your product is crucial to your product’s success; what may have worked for one product may not work for yours.</p><p><strong>How do you collect?</strong> Keep it organized. You want to find things fast when you need them. Folders in your browser, folders on your computer; whatever works. I look for things like: Common patterns, component libraries, processes, and documentation. You build your collection over time, just as I do with my LEGO stash. It doesn’t happen overnight. Some things take one Google search. Others take hours hunting for something that actually fits their standards and budget. The simple goal is to find things you might reuse. The Apple UI kits are a great example for working on Mac and IOS projects.</p><p>Being a collector doesn’t make you any less creative. Creating things like buttons and other common components from scratch is extremely time-consuming. In product design, we have to move fast and produce excellent work; being a collector helps us do that.</p><p>The more patterns you recognize, the faster you build. And eventually, you won’t be the designer wondering how others move so quickly.</p><p>You’ll be the one people turn to when they need an expert.</p><p>​</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6a3e4ce56445" width="1" height="1" alt=""><hr><p><a href="https://medium.com/livefront/becoming-the-ultimate-design-collector-6a3e4ce56445">Becoming the Ultimate Design Collector</a> was originally published in <a href="https://medium.com/livefront">Livefront</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Testing Old Asynchronous Code with Swift Testing]]></title>
            <link>https://medium.com/livefront/testing-old-asynchronous-code-with-swift-testing-10d9ee28536c?source=rss----75a105744d9a---4</link>
            <guid isPermaLink="false">https://medium.com/p/10d9ee28536c</guid>
            <dc:creator><![CDATA[Al Wold]]></dc:creator>
            <pubDate>Thu, 27 Aug 2026 02:36:47 GMT</pubDate>
            <atom:updated>2026-08-27T02:36:45.806Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*097fUP5wPtjbixveJx5J-Q.png" /></figure><p>Fast tests matter. Artificial delays waste time and obscure failures. In a <a href="https://livefront.com/writing/keep-your-ios-tests-quick-by-removing-artificial-delays/">previous article</a>, we explored this with XCTest. Now there’s a new wrinkle: Swift Testing. Swift Testing works really well alongside modern code taking advantage of Swift Concurrency, but if you are migrating a project to Swift Testing and still need to test some older code that uses completion handlers, you will find yourself between a rock and a hard place. Swift Testing has no equivalent of XCTestExpectation, and an improperly used continuation can silently hang your entire CI pipeline.</p><p>Here is the implementation code we were working on in the earlier article:</p><pre>class UserGetter {<br>    func getUser(_ completionHandler: (User) -&gt; Void) {<br>        // do some network stuff here...<br>        completionHandler(user)<br>    }<br>}</pre><p>With XCTest we are able to use XCTestExpectationto wait for the completion handler to be called, but there is no equivalent in Swift Testing. In Swift Testing, we need to use continuations to bridge completion handler based code into async code so it can be tested properly. To test the function above with a continuation, we can do something like this:</p><pre>struct UserGetterTests {<br>    @Test func getUser_callsCompletionHandler() async {<br>        let subject = UserGetter()<br>    <br>        let user = await withCheckedContinuation { continuation in<br>            subject.getUser { user in<br>                continuation.resume(returning: user)<br>            }<br>        }<br>      <br>        #expect(user.name == &quot;John Doe&quot;)<br>    }<br>}</pre><p>When calling withCheckedContinuation(_:), we pass in a block that receives a CheckedContinuation. Execution suspends in the calling context until the CheckedContinuation.resume(returning:) function is called on the continuation, at which point withCheckedContinuation(_:) returns the User and control flow returns to the test. Inside the block, we call the UserGetter.getUser(_:) function and then resume the continuation when the completion handler is called. This results in a test that immediately continues on to the assertions once the getUser(_:) function has completed.</p><p>With continuations, it’s important to handle resuming with care. You must call the resume(returning:) function (or another resume function) once and only once; the caller will be suspended until you do. So, if there’s a chance that your completion handler will not get called in this test, you need to be prepared to deal with that. Since a test is one tool that allows you to find incorrect code, even if you expect that the completion handler will always be called, you should build your test in a way that it can degrade gracefully if the completion handler does not get called, clearly directing you towards the problem in the case of a failure. This is especially important when your tests run under a continuous integration environment, where the test could hang the entire job, and it might be difficult to identify the offending test.</p><p>We want to add a timeout to make sure our test does not hang. There are a few ways to accomplish this, but we’ll use a task group. Setting this up is a bit involved. We create two tasks:</p><ul><li>A task that attempts to run the getUser(_:) method</li><li>A task that just waits for 2 seconds and then completes (to drive the timeout)</li></ul><p>Then we wait for the first result from the task group. If the test successfully gets the user, the first task will complete first. If getting the user takes longer than 2 seconds, the second task will finish first. We then cancel any remaining tasks and return the user (if we have one) or indicate a timeout (if we didn’t get a user):</p><pre>let subject = UserGetter()<br><br>enum UserResult {<br>    case user(User)<br>    case timeout<br>}<br><br>let result = await withTaskGroup(of: UserResult.self) { group in<br>    // add the first task to try to get the user<br>    group.addTask {<br>        let user = await withCheckedContinuation { continuation in<br>            subject.getUser { user in<br>                continuation.resume(returning: user)<br>            }<br>        }<br>        return .user(user)<br>    }<br>    // add the second task to time out after 2 seconds<br>    group.addTask {<br>        try? await Task.sleep(for: .seconds(2))<br>        return .timeout<br>    }<br>    // get the result of whichever task finishes first, then cancel the other task<br>    let result = await group.next()!<br>    group.cancelAll()<br>    return result<br>}<br><br>switch result {<br>case .user(let user):<br>    #expect(user.name == &quot;John Doe&quot;)<br>case .timeout:<br>    Issue.record(&quot;Completion handler was not called in time.&quot;)<br>}</pre><p>Now that we have a timeout, we know that this test will not hang the testing process. If we have to write several tests using this combination (Swift Testing + completion handlers), it probably makes sense to abstract this timeout behavior into a function:</p><pre>struct TimeoutError: Error {}<br><br>func withContinuationWithTimeout&lt;ResultType&gt;(_ closure: @escaping (CheckedContinuation&lt;ResultType, Never&gt;) -&gt; Void) async throws -&gt; ResultType {<br><br>    let result = await withTaskGroup(of: Result&lt;ResultType, Error&gt;.self) { group in<br>        group.addTask {<br>            let result = await withCheckedContinuation { continuation in<br>                closure(continuation)<br>            }<br>            return .success(result)<br>        }<br>        group.addTask {<br>            try? await Task.sleep(for: .seconds(2))<br>            return .failure(TimeoutError())<br>        }<br>        let result = await group.next()!<br>        group.cancelAll()<br>        return result<br>    }<br><br>    switch result {<br>    case .success(let resultContent):<br>        return resultContent<br>    case .failure(let error):<br>        throw error<br>    }<br>}</pre><p>We can use it like this in a test:</p><pre>let subject = UserGetter()<br><br>let user = try await withContinuationWithTimeout { continuation in<br>    subject.getUser { user in<br>        continuation.resume(returning: user)<br>    }<br>}<br><br>#expect(user.name == &quot;John Doe&quot;)</pre><p>Using continuations with our helper method gets us pretty close to the level of conciseness we had with with expectations in XCTest, and helps us avoid having to remember to deal with the pitfalls around using continuations. Over time, as asynchronous code gets updated to async/await, we can easily update the tests and enjoy the benefits of using Swift Testing, since we’ve already implemented the tests there.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=10d9ee28536c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/livefront/testing-old-asynchronous-code-with-swift-testing-10d9ee28536c">Testing Old Asynchronous Code with Swift Testing</a> was originally published in <a href="https://medium.com/livefront">Livefront</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[To win at AEO, you need to be more human]]></title>
            <link>https://medium.com/livefront/to-win-at-aeo-you-need-to-be-more-human-548ea52dae86?source=rss----75a105744d9a---4</link>
            <guid isPermaLink="false">https://medium.com/p/548ea52dae86</guid>
            <category><![CDATA[search-engine-optimizati]]></category>
            <category><![CDATA[answer-engine-optmization]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Jeff Soriano]]></dc:creator>
            <pubDate>Fri, 14 Aug 2026 16:00:26 GMT</pubDate>
            <atom:updated>2026-08-14T16:00:25.525Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1vlz0WfWqSsK0xcwlkvTCQ.jpeg" /></figure><p>AI search is dominating the landscape. No matter which data you look at, you’ll see that more and more people are turning to their favorite AI chatbot to look for things, rather than their favorite search engine. Even the average Joe who just uses Google will see the top of their page filled with AI summaries, rather than links. This has led many in the field of SEO to start chasing a new Holy Grail: Answer Engine Optimization, or AEO for short.</p><p>Instead of chasing the ranking, the idea is to start chasing the citation. If the LLM isn’t citing your company when users are asking the agent questions related to your business, then that’s something that’s gotta be fixed. But how exactly do we do that?</p><p>There are a slew of recommendations online. How evergreen this advice is remains to be seen. But there is one data point that highlights a key distinction between traditional search and AI search. This distinction will, I believe, point us to a principle that works for SEO, AEO, and beyond.</p><p>According to <a href="https://www.localogy.com/2026/02/soci-study-llm-queries-are-6x-longer-than-search-queries/">SOCi</a>, the average LLM search is 23 words. Contrast that with the average traditional search of 4 words. Additionally, Semrush found that between <a href="https://www.semrush.com/blog/chatgpt-search-insights/">65–85% of ChatGPT prompts couldn’t be matched to any traditional search keyword</a> in their database. What does this mean? It means that the way we use AI to search is quite different from the olden days.</p><p>This data makes perfect sense once we reflect on how we use tools like ChatGPT to search for stuff. For example, recently I was looking to book a massage. Before AI, I would’ve just searched “best massage place near me.” Now, with ChatGPT, I ask it “what is the best massage place in Las Vegas that offers a lymphatic drainage massage and sauna for under $150. give me 3 options.”</p><p>Putting aside my diva-esque ask, notice how specific the search had gotten. Before AI, I would have had to do the legwork of looking through websites, calling folks, and figuring out which place was right for me. In many cases, I would’ve just settled for whatever seemed okay. But now that AI makes it faster than ever to look for <em>exactly </em>what I want, that’s what I go for. And that is how many people use search now.</p><p>So what does this mean for your business? It means being the one at the end of that highly specific search funnel. LLMs are built for predicting the next word in a sentence. Let’s say you’re a marketing firm, and someone searches “what is the best marketing firm for a company of under 50 people and a budget of less than $500k”. Is the next word in the conversation the name of your business? Why? Why not?</p><p>Maybe it’s because you’re legitimately not the one that’s right for them. That may not necessarily be a bad thing. Or maybe you are the one, and they don’t know it yet. Or maybe they are the one for you, and <em>you </em>don’t know it yet. Figuring out these questions will be the key to your success. And AI will not help you answer these.</p><p>Why not? At the end of the day, you need to know exactly what your company is and exactly who you are trying to serve. This requires vision and empathy, human qualities which LLMs will never have.</p><p>On the topic of vision — LLMs don’t have this, literally or figuratively. Their prediction models might give you a good picture of what your company is today, but they will do a poor job of what your company could be tomorrow. To know the map, you have to know the landscape. You must know your company’s essence, its raison d’etre. These are qualities that words are very good at pointing towards, but not embodying. For this you must need a human body, with eyes to see, and a heart to feel, a conscious force that seeks to imprint upon the world its own ideas of how it can serve others.</p><p>On the topic of empathy — again, a feature that an LLM will fail to obtain. This goes hand in hand with the vision of the company: who are you trying to serve? Why? How does it feel to be the one with the problems you are trying to fix? Note that the old adage “you can’t please everyone” is highly relevant here. Your audience, your userbase, your customers, whatever you wish to call them, should be a very particular set of people with particular issues. In this highly digitized and abstracted world, how pleasant a feeling it is to be seen. How great is it to find someone at the other end of the LLM search funnel, someone who has exactly what you need? You should strive to be that person, and to be that person, you must have the empathy to know who it is that’s looking for you.</p><p>This strategy, by the way, is no new thing. It’s how genuinely good products begin to rise, through word of mouth. With the advent of marketing, there are those who have used their capital to inflate their sense of worth, whether it be adspend on billboards, commercials, SEO. But then there are those companies who have plodded on slowly, creating highly specific products for very specific uses, garnering pleasant reputations in the process.</p><p>Take the General Pencil Company, for instance. A family owned company established in 1860, their most prominent product is, you guessed it, pencils. They primarily serve artists, and have excellent products, such as their brush cleaner and preserver. You can be sure that this product will appear at the end of an LLM search if you’re a miniature painting hobbyist looking for a cheap, high quality brush cleaner (I would know, because I am this person that uses that product). You likely would never have heard of this company or this product, unless you are the very specific person in need of such a thing.</p><p>Thanks to AI, these humble niche companies are easier than ever to find. And being the right company for the right person has the double benefit of being resilient to whatever comes next for how we find things. Will the cameras on our devices sense our facial features and body temperature to recommend us the perfect product to ease or complement our mood? Will quantum computing predict what we want before we know it after uttering only a few words to the speakers in our Jarvis-style smart-homes? As it becomes easier and easier to find exactly what someone needs, it will be more and more important to be exactly what a particular someone needs. But to do that, you need to know who you are, and who you’re trying to connect to. In other words, you need to be more human.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=548ea52dae86" width="1" height="1" alt=""><hr><p><a href="https://medium.com/livefront/to-win-at-aeo-you-need-to-be-more-human-548ea52dae86">To win at AEO, you need to be more human</a> was originally published in <a href="https://medium.com/livefront">Livefront</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Charting a Course from Android Compose Nav2 to Nav3: Rework Bottom Sheet Navigation Destinations]]></title>
            <link>https://medium.com/livefront/charting-a-course-from-android-compose-nav2-to-nav3-rework-bottom-sheet-navigation-destinations-b66258d4dd80?source=rss----75a105744d9a---4</link>
            <guid isPermaLink="false">https://medium.com/p/b66258d4dd80</guid>
            <category><![CDATA[jetpack-compose]]></category>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[jetpack-navigation]]></category>
            <category><![CDATA[android-app-development]]></category>
            <dc:creator><![CDATA[Lucas Kivi]]></dc:creator>
            <pubDate>Tue, 28 Jul 2026 16:36:01 GMT</pubDate>
            <atom:updated>2026-07-28T16:54:19.003Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="A toucan is reading a treasure map." src="https://cdn-images-1.medium.com/max/1024/1*Y1aXH9LTSJwEekjz_VB10w.jpeg" /></figure><p><em>This is a part of a larger </em><a href="https://medium.com/livefront/charting-a-course-from-android-compose-navigation-2-to-navigation-3-d819d1fd8380"><em>guide</em></a><em> for migrating from Android Compose Navigation 2 to Navigation 3. Checkout the parent guide for an overview of the migration.</em></p><p>Bottom sheet destinations improved during the move from Nav2 to Nav3. The change stays true to the theme of more explicit control: we are given complete control over bottom sheet destinations, because they require you to create them entirely on your own. Google has provided a destination protocol consisting of a Scene and aSceneStrategy, which enables you to build the bottom sheet destination of your dreams.</p><h4>Scene Introduction</h4><p>The Scene is the fundamental unit in Navigation 3 that renders one or more NavEntry instances. Its sole responsibility is laying out entries.</p><p>The SceneStrategy is the mechanism that determines how a given list of NavEntry instances from the back stack should be arranged or transitioned into a Scene. It makes two main decisions:</p><ul><li>It checks if a scene can be made from a provided set of entries</li><li>And if it can, it chooses the entries to pass to the Scene</li></ul><p><em>I will not go into these very deeply; if you want to read more check out these </em><a href="https://developer.android.com/guide/navigation/navigation-3/scenes"><em>docs</em></a><em>.</em></p><p>Here is the simplest implementation of the protocol that comes out-of-the-box — a no-frills, single screen destination:</p><pre>/**<br> * A [SceneStrategy] that always creates a 1-entry [Scene] simply displaying the last entry in the<br> * list.<br> */<br>public class SinglePaneSceneStrategy&lt;T : Any&gt; : SceneStrategy&lt;T&gt; {<br><br>    override fun SceneStrategyScope&lt;T&gt;.calculateScene(entries: List&lt;NavEntry&lt;T&gt;&gt;): Scene&lt;T&gt; {<br>        return SinglePaneScene(<br>            key = entries.last().contentKey,<br>            entry = entries.last(),<br>            previousEntries = entries.dropLast(1),<br>        )<br>    }<br>}</pre><p>This strategy simply chooses the last entry and the previous entries and passes them off to the Scene in accordance with its constructor. Then the Scene just delegates to the Entrys content.</p><pre>internal data class SinglePaneScene&lt;T : Any&gt;(<br>    override val key: Any,<br>    val entry: NavEntry&lt;T&gt;,<br>    override val previousEntries: List&lt;NavEntry&lt;T&gt;&gt;,<br>) : Scene&lt;T&gt; {<br>    override val entries: List&lt;NavEntry&lt;T&gt;&gt; = listOf(entry)<br><br>    override val content: @Composable () -&gt; Unit = { entry.Content() }<br><br>    // equals(), hashCode(), and toString() overrides...<br>}</pre><p>Now that we have seen the basic pattern for how a NavEntry enters the display, we can go into creating a bottom sheet Scene.</p><h4>Bottom Sheets</h4><p>Google gives us a hint at how to build bottom sheet destinations via a Nav3 <a href="https://developer.android.com/guide/navigation/navigation-3/recipes/bottomsheet">recipe</a>. This instructs you in cooking up a bottom sheet Scene with ModalBottomSheet behavior built in. This is the Scene they use:</p><pre>internal data class BottomSheetScene&lt;T : Any&gt;(<br>    override val key: T,<br>    override val previousEntries: List&lt;NavEntry&lt;T&gt;&gt;,<br>    override val overlaidEntries: List&lt;NavEntry&lt;T&gt;&gt;,<br>    private val entry: NavEntry&lt;T&gt;,<br>    private val modalBottomSheetProperties: ModalBottomSheetProperties,<br>    private val onBack: () -&gt; Unit,<br>) : OverlayScene&lt;T&gt; {<br><br>    override val entries: List&lt;NavEntry&lt;T&gt;&gt; = listOf(entry)<br><br>    override val content: @Composable (() -&gt; Unit) = {<br>        val lifecycleOwner = rememberLifecycleOwner()<br>        ModalBottomSheet(<br>            onDismissRequest = onBack,<br>            properties = modalBottomSheetProperties,<br>        ) {<br>            CompositionLocalProvider(LocalLifecycleOwner provides lifecycleOwner) {<br>                entry.Content()<br>            }<br>        }<br>    }<br>}</pre><p>BottomSheetScene implements an out-of-the-box interface called OverlayScene. Implementing an OverlayScene allows you to handle laying out your bottom sheet while it assures overlaidEntries are passed off to another Scene that will be laid out in the background.</p><p>Also, you can see that it builds a ModalBottomSheet directly within the Scene! This is my main point of concern. If we configure the ModalBottomSheet in the navigation layer, we can only manipulate its state from the “navigation host”. I want to be able to control the constructor in my screen’s definition so I can intercept the onDismissRequest, sheetState, or whatever else I want.</p><p>Here is a little example:</p><pre>val coroutineScope = rememberCoroutineScope()<br>val sheetState: SheetState = rememberModalBottomSheetState()<br>val hideSheet: () -&gt; Unit = { scope.launch { sheetState.hide() } }<br><br>ModalBottomSheet(<br>    onDismissRequest = { /* Go to the ViewModel. */ },<br>    sheetState = sheetState,<br>) { ... }</pre><p>So what I really want from my “bottom sheet destination” is basic overlay behavior — I want my destination to manage the previous entry (overlaidEntries) and provide me a window to build to my liking! So let’s break down what you <em>actually </em>need to do to achieve this.</p><h3>Nuts and Bolts</h3><p>To do this we define our Scene.</p><pre>/**<br> * An [OverlayScene] that renders [topEntry] over [previousEntries].<br> */<br>internal data class SimpleOverlayScene&lt;T : Any&gt;(<br>    override val key: Any,<br>    override val previousEntries: List&lt;NavEntry&lt;T&gt;&gt;,<br>    private val topEntry: NavEntry&lt;T&gt;,<br>) : OverlayScene&lt;T&gt; {<br>    override val entries: List&lt;NavEntry&lt;T&gt;&gt; = listOf(topEntry)<br>    override val overlaidEntries: List&lt;NavEntry&lt;T&gt;&gt; = previousEntries<br>    override val content: @Composable (() -&gt; Unit) = topEntry::Content<br>}</pre><p>This implementation takes a single NavEntry, sets the topEntry’s content directly, and sets the overlaidEntries to all previousEntries. This means topEntry’s content overlays all previous entries. The main difference from the recipe’s implementation is it never handles creating an actual bottom sheet.</p><p>Next, we need to define our SceneStrategy:</p><pre>/**<br> * A [SceneStrategy] that displays entries tagged by [register] as a simple overlay scene, delegating<br> * all UI to the entry&#39;s own content.<br> */<br>class SimpleOverlaySceneStrategy&lt;T : Any&gt; : SceneStrategy&lt;T&gt; {<br><br>override fun SceneStrategyScope&lt;T&gt;.calculateScene(<br>        entries: List&lt;NavEntry&lt;T&gt;&gt;,<br>    ): Scene&lt;T&gt;? =<br>        entries<br>            .lastOrNull()<br>            ?.takeIf { topEntry -&gt; SceneKey in topEntry.metadata }<br>            ?.let { topEntry -&gt;<br>                SimpleOverlaySceneImpl(<br>                    key = topEntry.contentKey,<br>                    previousEntries = entries.dropLast(1),<br>                    topEntry = topEntry,<br>                )<br>            }<br><br>    companion object {<br>        /**<br>         * Call this on [NavEntry.metadata] to mark an entry as one that should be displayed by<br>         * [SimpleOverlaySceneStrategy].<br>         */<br>        fun register(): Map&lt;String, Any&gt; = mapOf(SceneKey to Unit)<br><br>        const val SceneKey = &quot;SimpleOverlaySceneStrategy.SceneKey&quot;<br>    }<br>}</pre><p>As you can see in SimpleOverlaySceneStrategy.calculateScene(…), in order to activate the scene strategy the topEntry’s metadata must contain the correct key.</p><pre>        entries<br>            .lastOrNull()<br>            ?.takeIf { topEntry -&gt; SceneKey in topEntry.metadata }<br>            ?.let { ... }</pre><p>If the key is found the SimpleOverlayScene is created, otherwise it returns null and the NavDisplay continues looking for a SceneStrategy that can handle the entries of concern.</p><p>We add this metadata to an entry in its declaration.</p><pre>entry&lt;Route.FooSheet&gt;(<br>    metadata = SimpleOverlaySceneStrategy.register(),<br>) { route -&gt;<br>    FooSheet(...)<br>}</pre><p>I have come to like defining a register() method like this in the SceneStrategy’s companion object. Creating a Map in the definition of the entry just feels a bit clumsy — the register() abstraction is an idiomatic and reusable registration process.</p><p>Then to enable the SceneStrategy for a given NavDisplay you must supply it at the call site in some way.</p><pre>val sceneStrategies = listOf(<br>     SimpleOverlaySceneStrategy(),<br>     ...,<br>     SinglePaneSceneStrategy(),<br>)<br>NavDisplay(<br>    sceneStrategies = sceneStrategies,<br>    ...,<br>)</pre><p>There are multiple NavDisplay overloads so keep in mind that this is just one example, but the basic concept is the same across all overloads.</p><p>One important thing to consider is that sceneStrategies ordering matters! Their corresponding calculateScene methods are calculated <em>in order</em>. So the first strategy that claims an entry wins! Most apps will have SinglePaneSceneStrategy in their list and that serves as a catch-all!</p><h4>Before</h4><p>In Nav2 bottom sheet navigation was pretty poorly supported so you had one of two options:</p><ul><li>Declare bottom sheet destinations via the Material Navigation NavGraphBuilder.bottomSheet(...) function</li><li>Manage sheets manually, totally separately from the nav component</li></ul><p>Neither of these options were perfect, and the latter was the only way to get complete control of the dialog used for the bottom sheet.</p><h4>After</h4><p>In Nav3 the preferred model is:</p><ul><li>Implement an OverlayScene and a corresponding SceneStrategy that uses it</li><li>In your implementation, support the type of bottom sheet destination your heart desires</li><li>Add some metadata to the bottom sheet entry that corresponds to the OverlayScene</li><li>Declare the new SceneStrategy in the NavDisplay</li></ul><p>This takes advantage of the amazing control afforded by Nav3 and gives us explicit control of how the bottom sheet destination behaves — how refreshing!</p><h4>Migration guidance</h4><p>As a rule of thumb during the migration:</p><blockquote><em>If a you want a bottom sheet navigation destination, implement an </em><em>OverlayScene and employ it via a </em><em>SceneStrategy, and then provide it to the </em><em>NavDisplay.</em></blockquote><p>Maybe eventually Nav3 will make some out of-the-box “materialy” bottom sheet SceneStrategys but that is not necessary. Take advantage of the explicit control you are granted with Nav3’s beautiful scene APIs.</p><p><em>Lucas creates strategic scenes at Livefront.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b66258d4dd80" width="1" height="1" alt=""><hr><p><a href="https://medium.com/livefront/charting-a-course-from-android-compose-nav2-to-nav3-rework-bottom-sheet-navigation-destinations-b66258d4dd80">Charting a Course from Android Compose Nav2 to Nav3: Rework Bottom Sheet Navigation Destinations</a> was originally published in <a href="https://medium.com/livefront">Livefront</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Charting a Course from Android Compose Nav2 to Nav3: Use Metadata for Transition Animations]]></title>
            <link>https://medium.com/livefront/charting-a-course-from-android-compose-nav2-to-nav3-use-metadata-for-transition-animations-32371bbb11bd?source=rss----75a105744d9a---4</link>
            <guid isPermaLink="false">https://medium.com/p/32371bbb11bd</guid>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[jetpack-compose]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[jetpack-navigation]]></category>
            <dc:creator><![CDATA[Lucas Kivi]]></dc:creator>
            <pubDate>Tue, 28 Jul 2026 16:35:33 GMT</pubDate>
            <atom:updated>2026-07-28T16:53:50.092Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="A toucan holding a map. In the background is a boat steering wheel and a sextant." src="https://cdn-images-1.medium.com/max/1024/1*U_s6bqeOASgM1IwOvxTtDQ.jpeg" /></figure><p><em>This is a part of a larger </em><a href="https://medium.com/livefront/charting-a-course-from-android-compose-navigation-2-to-navigation-3-d819d1fd8380"><em>guide</em></a><em> for migrating from Android Compose Navigation 2 to Navigation 3. Checkout the parent guide for an overview of the migration.</em></p><p>Defining destination-level animations is a crucial part to any navigation framework. In Nav2 destination transitions were configured directly within the nav graph’s builder.</p><pre>composable&lt;MainRoute.Inbox&gt;(<br>    enterTransition = { slideInHorizontally() },<br>    exitTransition = { slideOutHorizontally() },<br>    popEnterTransition = { slideInHorizontally() },<br>    popExitTransition = { slideOutHorizontally() },<br>) {<br>    InboxScreen(...)<br>}</pre><p>It was very easy to make helper functions to abstract away common animation patterns. Something like this:</p><pre>inline fun &lt;reified T : Any&gt; NavGraphBuilder.horizontallySlidingComposable(<br>    noinline content: @Composable AnimatedContentScope.(NavBackStackEntry) -&gt; Unit,<br>): Unit =<br>    composable&lt;T&gt;(<br>        content = content,<br>        enterTransition = { slideInHorizontally() },<br>        exitTransition = { slideOutHorizontally() },<br>        popEnterTransition = { slideInHorizontally() },<br>        popExitTransition = { slideOutHorizontally() },<br>    )</pre><pre>horizontallySlidingComposable&lt;MainRoute.Inbox&gt;) {<br>    InboxScreen(...)<br>}</pre><p>This is a great strength and it is <em>still</em> possible in Nav3!</p><h4>Improved Predictive Back Support</h4><p>If you aren’t familiar with this predictive back as a concept, take a peak at the official <a href="https://developer.android.com/guide/navigation/custom-back/predictive-back-gesture">docs</a>, but the basic idea is that the back animation is <em>predictive </em>and therefore<em> scrubbable.</em></p><figure><img alt="I start the gesture back navigation but never actually complete the back gesture and you can see that the fade and shrink transition is slowly played forward. In the end I cancel the back navigation and the transition is reversed such that the original screen is still completely visible." src="https://cdn-images-1.medium.com/max/320/1*3NyCEJeqYnOcTUBcEbmmoQ.gif" /><figcaption>In this predictive back demo I start the gesture back navigation but never actually release my finger which would allow the navigation to complete.</figcaption></figure><p>In Nav2 the predictive back behavior was the same as the pop animation, but like I said, <em>scrubbable</em>. In Nav3 we can actually specify a distinct predictive back behavior; more on that later.</p><h3>Nuts and Bolts</h3><p>In Nav3, the animation behavior is still attached to the entry’s definition, but the animation model shifts a little bit. Instead of attaching transitions directly to composable destinations, transitions are defined as metadata on entries using special keys:</p><ul><li>NavDisplay.TransitionKey: for metadata to notify the NavDisplay of how the content should be animated when adding to the backstack.</li><li>NavDisplay.PopTransitionKey: for metadata to notify the NavDisplay of how the content should be animated when popping from backstack.</li><li>NavDisplay.PredictivePopTransitionKey: for metadata to notify the NavDisplay of how the content should be animated when popping from backstack using a predictive back gesture.</li></ul><p>In practice, you will have something like this:</p><pre>entry&lt;MainRoute.Inbox&gt;(<br>    metadata = metadata {<br>        put(NavDisplay.TransitionKey) {<br>            slideInHorizontally() togetherWith slideOutHorizontally()<br>        }<br>        put(NavDisplay.PopTransitionKey) {<br>            slideInHorizontally() togetherWith slideOutHorizontally()<br>        }<br>        put(NavDisplay.PredictivePopTransitionKey) {<br>            slideInHorizontally() togetherWith slideOutHorizontally()<br>        }<br>    },<br>) {<br>    InboxScreen(...)<br>}</pre><p>The official NavDisplay API supports this metadata-based transition model, including defining those keys I mentioned for normal transitions, pop transitions, and predictive-pop transitions. And as I said, we can still make the helper functions:</p><pre>inline fun &lt;reified T : Any&gt; EntryProviderScope&lt;in T&gt;.horizontallySlidingEntry(<br>    noinline content: @Composable (T) -&gt; Unit,<br>): Unit =<br>    entry&lt;T&gt;(<br>        content = content,<br>        metadata = metadata {<br>            put(NavDisplay.TransitionKey) {<br>                TransitionDefaults.Enter.slideLeft togetherWith TransitionDefaults.Exit.stay<br>            }<br>            put(NavDisplay.PopTransitionKey) {<br>                TransitionDefaults.Enter.alreadyThere togetherWith TransitionDefaults.Exit.pushRight<br>            }<br>            put(NavDisplay.PredictivePopTransitionKey) {<br>                TransitionDefaults.Enter.alreadyThere togetherWith TransitionDefaults.Exit.pushRight<br>            }<br>        },<br>    )</pre><pre>horizontallySlidingEntry&lt;MainRoute.Inbox&gt;) {<br>    InboxScreen(...)<br>}</pre><h3>To Recap</h3><h4>In Nav2</h4><p>The pattern looked like this:</p><ul><li>Extend NavGraphBuilder</li><li>Register a composable&lt;T&gt;()</li><li>Attach transitions directly through destination transition parameters</li><li>Predictive back defaults to popEnterTransition and popExitTransition after 2.8.0</li></ul><h4>In Nav3</h4><p>The pattern becomes:</p><ul><li>Extend EntryProviderScope&lt;K&gt;</li><li>Register an entry&lt;T&gt;()</li><li>Define separate metadata animation values for NavDisplay.TransitionKey, NavDisplay.PopTransitionKey, and NavDisplay.PredictivePopTransitionKey</li></ul><h3>Conclusion</h3><p>The shape of the basic animation API is very similar once you get used to the new metadata mapping system. Additionally, you must specify an animation with the key of NavDisplay.PredictivePopTransitionKey if you want to override the default predictive back behavior.</p><h4>Migration guidance</h4><p>Consider these rules of thumb when migrating animation behavior from Nav2 to Nav3:</p><ul><li>If a destination had custom transitions in Nav2, move that behavior into entry metadata in Nav3.</li><li>Start specifying predictive back animations.</li><li>For destinations with reusable animation patterns, it still makes sense to keep helper abstractions.</li></ul><p><strong>Up next</strong>: <a href="https://medium.com/livefront/charting-a-course-from-android-compose-nav2-to-nav3-rework-bottom-sheet-navigation-destinations-b66258d4dd80">rework bottom sheet navigation destinations</a>.</p><p><em>Lucas is very animated (often predictably so) at Livefront.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=32371bbb11bd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/livefront/charting-a-course-from-android-compose-nav2-to-nav3-use-metadata-for-transition-animations-32371bbb11bd">Charting a Course from Android Compose Nav2 to Nav3: Use Metadata for Transition Animations</a> was originally published in <a href="https://medium.com/livefront">Livefront</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Charting a Course from Android Compose Nav2 to Nav3: Manually Inject Navigation Arguments]]></title>
            <link>https://medium.com/livefront/charting-a-course-from-android-compose-nav2-to-nav3-manually-inject-navigation-arguments-14dca2c1a039?source=rss----75a105744d9a---4</link>
            <guid isPermaLink="false">https://medium.com/p/14dca2c1a039</guid>
            <category><![CDATA[jetpack-navigation]]></category>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[jetpack-compose]]></category>
            <dc:creator><![CDATA[Lucas Kivi]]></dc:creator>
            <pubDate>Mon, 27 Jul 2026 16:29:29 GMT</pubDate>
            <atom:updated>2026-07-28T16:53:04.531Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="A toucan looking at a globe." src="https://cdn-images-1.medium.com/max/1024/1*Ph2tdsZIGpoeLYwmlM7EMA.jpeg" /></figure><p><em>This is a part of a larger </em><a href="https://medium.com/livefront/charting-a-course-from-android-compose-navigation-2-to-navigation-3-d819d1fd8380"><em>guide</em></a><em> for migrating from Android Compose Navigation 2 to Navigation 3. Checkout the parent guide for an overview of the migration.</em></p><p>One of the first things to address in a Nav2 → Nav3 migration is how navigation arguments are provided to ViewModels. Nav3 has a specific <a href="https://github.com/android/nav3-recipes/tree/main/app/src/main/java/com/example/nav3recipes/passingarguments/viewmodels/hilt">recipe</a> for this, which was the main inspiration for the pattern I ultimately implemented.</p><p>In many past navigation implementations (Compose Nav2 included), the navigation component supplies the SavedStateHandle with navigation arguments, and ViewModels are generally responsible for knowing how to read those arguments from an injected SavedStateHandle:</p><pre>@HiltViewModel<br>class ProfileViewModel @Inject constructor(<br>    savedStateHandle: SavedStateHandle,<br>    private val userRepository: UserRepository<br>) : ViewModel() {<br><br>    private val route: ProfileRoute = savedStateHandle.toRoute&lt;ProfileRoute&gt;()<br><br>    val user = userRepository.getUser(route.userId)<br>}</pre><p>This pattern works, but it couples the ViewModel directly to navigation-managed state. The ViewModel does not receive its inputs explicitly. Instead, it has to know how to pull them out of the navigation layer. In my experience, this is a major source of confusion for new devs — why does this SavedStateHandle even have my nav args? Eventually we just accept that this is a magic part of the nav component.</p><p>In Nav3, this pattern is thrown overboard; its navigation component no longer populates the SavedStateHandle. <strong>Route arguments are resolved at each screen’s entry point</strong>. I then recommend passing them to the ViewModel at creation time via factory injection.</p><h4>Back Stack Management Changes</h4><p>In Nav3 back stack management becomes very hands-on. This is a major benefit of the new paradigm but it makes talking about navigation a bit more abstract. Ultimately, you just need to provide a set of NavEntrys to the NavDisplay, but I will avoid going deeper into that as it is beyond the scope of this article. I think 90% of use cases will look something like this:</p><pre>val backStack = rememberNavBackStack(HomeRoute)<br><br>NavDisplay(<br>    backStack = backStack,<br>    entryProvider = entryProvider { <br>        entry&lt;HomeRoute&gt; { ... }<br>        entry&lt;ProfileRoute&gt; { ... }<br>        ...<br>    },<br>    ...,<br>)</pre><p>The two relevant parameters are:</p><ul><li>backStack: A collection of keys that represents the state that needs to be handled by the NavDisplay. This is what we manipulate for navigation!</li><li>entryProvider: The lambda used to construct each possible NavEntry. This is where we build the screens associated with each navigation route.</li></ul><h3>Nuts and Bolts</h3><p>For the following examples, we will assume you are employing <a href="https://developer.android.com/training/dependency-injection/hilt-android">Hilt dependency injection</a> (Hilt, now there is something natural for new devs…). Importantly, we will use Hilt’s assisted injection, for which there is plenty of documentation and precedent; <a href="https://developer.android.com/training/dependency-injection/hilt-jetpack#assisted-injection">this link</a> can get you started. We will also use typed navigation with the following ProfileRoute type.</p><pre>@Serializable<br>data class ProfileRoute(<br>    val userId: String,<br>)</pre><h4>In Nav2</h4><p>A common pattern looks like this:</p><ul><li>Define the type-safe composable destination</li></ul><pre>composable&lt;ProfileRoute&gt; {<br>    val viewModel: ProfileViewModel = hiltViewModel()<br>    ProfileScreen(viewModel)<br>}</pre><ul><li>Navigate with navigation arguments, creating a back stack entry that stores and provides the argument</li></ul><pre>val route = ProfileRoute(...)<br>navController.navigate(route)</pre><ul><li>Read navigation arguments inside the ViewModel from SavedStateHandle</li></ul><pre>@HiltViewModel<br>class ProfileViewModel @Inject constructor(<br>    savedStateHandle: SavedStateHandle,<br>    private val userRepository: UserRepository<br>) : ViewModel() {<br><br>    private val route: ProfileRoute = savedStateHandle.toRoute&lt;ProfileRoute&gt;()<br><br>    val user = userRepository.getUser(route.userId)<br>}</pre><p>This makes navigation arguments feel convenient, but it also hides an important dependency. The ViewModel depends on a navigation argument, but that dependency is not visible in its constructor — it is impossible to see this dependency in the ProfileViewModel‘s public contract. If the VM somehow did not receive a route the app would crash.</p><h4>In Nav3</h4><p>Here, the preferred model is:</p><ul><li>Define a ViewModel and an associated factory, so you can construct the ViewModel with both its injected dependencies and its navigation inputs</li></ul><pre>@HiltViewModel(assistedFactory = ProfileViewModel.Factory::class)<br>class ProfileViewModel @AssistedInject constructor(<br>    @Assisted private val route: ProfileRoute,<br>    private val userRepository: UserRepository<br>) : ViewModel() {<br><br>    val user = userRepository.getUser(userId)<br><br>    @AssistedFactory<br>    interface Factory {<br>        fun create(route: ProfileRoute): ProfileViewModel<br>    }<br>}<br><br>// This can be made generic if you use a `BaseViewModel`.<br>@Composable<br>fun profileViewModel(<br>    route: ProfileRoute,<br>): ProfileViewModel =<br>    hiltViewModel&lt;ProfileViewModel, ProfileViewModel.Factory&gt;(<br>        creationCallback = { factory -&gt; factory.create(route) },<br>    )</pre><ul><li>Define the type-safe entry destination, handle resolving the navigation argument, then pass the data off to the ViewModel factory</li></ul><pre>entry&lt;ProfileRoute&gt; { route -&gt;<br>    val viewModel = profileViewModel(<br>        route = route,<br>    )<br>    ProfileScreen(viewModel)<br>}</pre><ul><li>Navigate with navigation arguments, creating a back stack entry that stores and provides the argument</li></ul><pre>val route = ProfileRoute(...)<br>backStack.add(route)</pre><p>This makes the ViewModel’s required inputs explicit and shifts responsibility to the correct layer:</p><ul><li>Navigation owns route parsing</li><li>Dependency injection owns object construction</li><li>The ViewModel just receives what it needs</li></ul><p>This <em>is </em>a bit more verbose, but in some ways it <em>should</em> be — it makes explicit something that was previously abstracted away from us behind the navigation component.</p><h3>Conclusion</h3><h4>Manual Injection is a Better Pattern</h4><p>Moving away from SavedStateHandle for primary argument provision has a few main benefits:</p><ul><li>Dependencies are explicit, typed, and required instead of hidden, casted, and implied</li><li>ViewModels are less coupled to navigation internals</li><li>Testing is simpler because inputs can be provided directly</li></ul><p>SavedStateHandle may still have a place for state restoration, but it no longer works out of the box for delivering navigation arguments into a ViewModel, and therefore it should stop being the default mechanism.</p><p><strong>Up next</strong>: <a href="https://medium.com/livefront/charting-a-course-from-android-compose-nav2-to-nav3-use-metadata-for-transition-animations-32371bbb11bd">use metadata to control navigation animations</a>.</p><p><em>Lucas </em><strong><em>arg</em></strong><em>ues with </em><em>ViewModels and </em><strong><em>assist</em></strong><em>s with </em><strong><em>injection</em></strong><em> at Livefront.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=14dca2c1a039" width="1" height="1" alt=""><hr><p><a href="https://medium.com/livefront/charting-a-course-from-android-compose-nav2-to-nav3-manually-inject-navigation-arguments-14dca2c1a039">Charting a Course from Android Compose Nav2 to Nav3: Manually Inject Navigation Arguments</a> was originally published in <a href="https://medium.com/livefront">Livefront</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Charting a Course from Android Compose Navigation 2 to Navigation 3]]></title>
            <link>https://medium.com/livefront/charting-a-course-from-android-compose-navigation-2-to-navigation-3-d819d1fd8380?source=rss----75a105744d9a---4</link>
            <guid isPermaLink="false">https://medium.com/p/d819d1fd8380</guid>
            <category><![CDATA[jetpack-compose]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[jetpack-navigation]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Lucas Kivi]]></dc:creator>
            <pubDate>Mon, 27 Jul 2026 16:29:03 GMT</pubDate>
            <atom:updated>2026-09-04T18:40:21.235Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="A toucan on a boat holding a map that desribes how to navigate the migration from Nav2 to Nav3!" src="https://cdn-images-1.medium.com/max/1024/1*U5l52DCkB1m1zrzyVtevZg.jpeg" /></figure><p>The goal of this article, which is the first in a series, is to serve as a guide for Android developers in their migration from Navigation 2.0 to Navigation 3.0, a potentially harrowing but extremely worthwhile journey.</p><p>Android Navigation 2.0 has been with us since 2019, and it was thought up before Compose even existed. It is chock full of complex implicit behavior and extremely abstract methods because it was built to civilize Fragment-era navigation. This feels clumsy in the Jetpack Compose-era of descriptive Kotlin-based UI where you have complete ownership of screens and their entry points.</p><p>The <a href="https://android-developers.googleblog.com/2025/05/announcing-jetpack-navigation-3-for-compose.html">foundational principles</a> Navigation 3.0 is based on are:</p><ul><li><strong>You own the back stack:</strong> The back stack is just a list you can modify at will.</li><li><strong>Get out of your way: </strong>Give developers the wheel! Nav3 is open and extensible, not a black box.</li><li><strong>Pick your building blocks:</strong> Instead of embedding all behavior in the library, give the developers building blocks so they can build their own opinionated solutions.</li></ul><p>This all boils down to more explicit control and that gets me fired up.</p><h4>Should I Migrate?</h4><p>The short answer is <em>absolutely</em>! It is <a href="https://android-developers.googleblog.com/2025/11/jetpack-navigation-3-is-stable.html?utm_source=chatgpt.com">stable</a> as of November 19th, 2025. This is the way of the future and we all know how that works. Nav2 will gradually be deprecated and migration will become necessary. And lastly, it is simply much better. I know, because I already completely migrated an enterprise app with millions of users.</p><h4>My Experience</h4><p>To me, the past few navigation frameworks felt confusing and abstract due to their overwhelmingly implicit nature.</p><ul><li>What the hell are navOptions, what do they do, and what are they doing to my back stack?</li><li>Why don’t I have a simple window into what is on my back stack?</li><li>Navigate <em>up</em>?</li><li>With Compose Nav2 I can’t start the nav graph with multiple entries???</li></ul><p>With Nav3, those issues drift out to sea. We get explicit control over stack behavior, which sounds simple, but in practice it changes the whole feel of the API. It feels closer to how navigation actually works in my head, and that makes it much easier to reason about. There is still abstraction behind the component, of course, but it feels better placed. It feels less like “call a magic controller method and hope the stack does what you hoped,” and more like “model the stack and interactions you actually want.”</p><p>I will give credit where it is due: <strong>Google really seems to have nailed this one</strong>. Android navigation APIs have been a common source of frustration for a long time, so it is worth saying plainly when something feels like a real step forward. Every other iteration has come with gotchas, but I have not yet found any in these waters. Nav3 is a meaningful improvement.</p><h3>Setting Sail</h3><p>The goal of migrating to Nav3 is not just to swap APIs, but to adopt the patterns the new systems imply. Some of these changes require some thought. This guide documents some of the more interesting architectural decisions I encountered. Click the following articles to learn more!</p><ol><li><a href="https://medium.com/livefront/charting-a-course-from-android-compose-nav2-to-nav3-manually-inject-navigation-arguments-14dca2c1a039">Move navigation arguments out of </a><a href="https://medium.com/livefront/charting-a-course-from-android-compose-nav2-to-nav3-manually-inject-navigation-arguments-14dca2c1a039">SavedStateHandle</a>.</li><li><a href="https://medium.com/livefront/charting-a-course-from-android-compose-nav2-to-nav3-use-metadata-for-transition-animations-32371bbb11bd">Use metadata to control navigation animations.</a></li><li><a href="https://medium.com/livefront/charting-a-course-from-android-compose-nav2-to-nav3-rework-bottom-sheet-navigation-destinations-b66258d4dd80">Rework bottom sheet navigation destinations.</a></li></ol><h3>Conclusion</h3><p>Migrating from Nav2 to Nav3 went swimmingly for me, so I hope you all have a similar experience using this guide for buoyancy while navigating these waters. Nav3 is a much nicer system to work with than Nav2. The library design gives you direct back stack control, in practice you can make all of the changes you want, and those changes result in the behavior you expect.</p><p><em>Lucas navigates Android infested waters at Livefront.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d819d1fd8380" width="1" height="1" alt=""><hr><p><a href="https://medium.com/livefront/charting-a-course-from-android-compose-navigation-2-to-navigation-3-d819d1fd8380">Charting a Course from Android Compose Navigation 2 to Navigation 3</a> was originally published in <a href="https://medium.com/livefront">Livefront</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>