SwiftUI apps at scale

<blockquote> <blockquote> <p>SwiftUI is fantastic, but not perfect. Some of these imperfections are expected from a nascent 4-year-old framework, but just one creates the roadblock to wider adoption.</p> </blockquote> <p>Today, I&rsquo;m going to tell the story of my SwiftUI journey at 3 startups; and explain my solution to the critical flaw preventing you from using SwiftUI full-time.</p> <h1>SwiftUI through the years</h1> <p>I&rsquo;ve been lucky enough to be primarily using SwiftUI since its inception.</p> <p>When the beta dropped in 2019, I was working on a side-project-slash-start-up, Patcher &mdash; think Uber for car repairs. Like all na&iuml;ve engineers on our first rodeo we decided to build everything before getting our first customers.</p> <p>This app had everything. A map, onboarding, profiles, job requests, payments, a repair-in-progress flow, and&nbsp;<em>a second companion app for mechanics</em>. It&rsquo;s safe to say it was a pretty complex beast, and it&rsquo;s safe to say SwiftUI was&nbsp;<strong>not</strong>&nbsp;ready for this in late 2019 and early 2020.</p> <p>Early UIKit inter-op was janky and it was difficult to pass state about. This was a problem when two major features used the Google Maps SDK (MapView didn&rsquo;t exist!) and the camera. Worst of all, Navigation was entirely broken in SwiftUI 1.0. We eventually ended up using modals for the vast majority of in-app navigation.</p> </blockquote> <p><a href="https://betterprogramming.pub/swiftui-apps-at-scale-19b7886384f7">Click Here</a>&nbsp;</p>