Latest Updates
Read my latest articles. Browse the archives. Follow the RSS feed. Subscribe to the newsletter to get the latest posts direct to your inbox.
-
SwiftData Expressions
SwiftData gained support for predicate expression in iOS 18. How does it compare to the expressions we can use with Core Data?
-
SwiftUI Previewable Macro
Apple added the Previewable macro to iOS 18. This generates the boilerplate wrapper view you need to preview a view with State bindings.
-
Disabling Xcode Asset Symbol Generation
Xcode 16 added a property to asset catalogs to opt-out of asset symbol generation. This is especially useful for Swift Packages which had no way to disable the project settings they inherited.
-
Entry Macro for Custom SwiftUI Environment Values
The Entry macro reduces the boilerplate when customizing the SwiftUI environment.
-
SwiftData Indexes
When Apple launched SwiftData in iOS 17 it was missing the ability to add indexes. Apple corrected that omission in iOS 18.
-
Swift Switch And If Expressions
Swift 5.9 introduced a change that allows you to use
if
andswitch
statements as expressions. There are some limitations but it can still be useful. -
Xcode Explicitly Built Modules
Xcode 16 introduces an experimental setting to explicitly build Swift modules. Here’s my notes from trying it out.
-
WWDC 2024 Viewing Guide
My WWDC 2024 viewing guide to help you plan the sessions you want to watch.