Identifiable protocol in SwiftUI explained with code examples
The Identifiable protocol adds identity to your objects and comes with a default implementation using ObjectIdentifier for classes.
The Swift Concurrency Playbook
A FREE 5-day email course revealing the 5 biggest mistakes iOS developers make with async/await that lead to App Store rejections And migration projects taking months instead of days (even if you've been writing Swift for years).
5 lessons | 100% free | For iOS developers
Learn more and get better in building apps with SwiftUI.
The Identifiable protocol adds identity to your objects and comes with a default implementation using ObjectIdentifier for classes.
Listen to key press events, either specific or a set of keys. You can detect modifiers, as well as phases like up, down, or repeat.
Support Dynamic Type in your app and use the @ScaledMetric Property Wrapper to scale numeric values proportionally.
ScrollView Bounce behavior configuration in SwiftUI allows you to disable bouncing based on the size of the inner content.
The @Observable macro replaces ObservableObject, @ObservedObject, and @Published. Increase the performance of your SwiftUI views.
Use SFSafariViewController in SwiftUI and catch any outgoing URLs to ensure they open in-app instead of in the external Safari browser.
Debugging SwiftUI views allows you to find the cause of a redraw. Solve unexpected animation issues using this technique.
App Intents allow you to provide your app's content and functionality to the system and integrate it with widgets, shortcuts, and more.
Use the ContentUnavailableView to show localized empty states with your users that look familiar to standard system components.
Deeplinks allow you to link to any page in your app externally or inside. If intelligent, you can use them to increase productivity.
Apply view composition by combining view modifiers and create endless combinations of enriched views using reusable code components.
Allow your users to vote on backlog features inside your app using Roadmap and start growing user-retention by building what matters.