SwiftUI Weekly - Issue #228
ReadingAdd an Open Recent Menu to a SwiftUI appWhy would you need to add an Open Recent menu? The most common reason is you created an app that doesn’t use the document architecture, and you want a way for your app’s users to access recent items. Migrating to the Observation framework in SwiftUISwiftUI's current state-of-the-art approach to state observation is the Observation framework. It uses the macro system in Swift to transform Swift types into observable state. Advanced NavigationStack Patterns in SwiftUINavigationStack, introduced in iOS 16, revolutionized navigation in SwiftUI. While basic usage is straightforward, mastering its advanced patterns unlocks powerful capabilities for building complex, production-ready apps. Swift Bits: Transition vs TransactionTwo concepts that frequently come up when building polished, animated interfaces are Transitions and Transactions. They sound similar (and they’re both related to motion and state changes) but they serve very different purposes. SwiftUI Agent Skill: Build better views with AIA SwiftUI Agent Skill that helps you build better views or refactor existing ones. It’s the reality we’re in today, and I honestly can’t live without it anymore myself. Several skills helped me improve the code quality produced by agents, and I’m happy to introduce you to a new open-source skill for SwiftUI. |