Overview of new Swift macros in Xcode 15
Xcode 15 introduces several powerful built-in macros, though they are generally limited to iOS 17+ (no backward compatibility):
@Observable: Simplifies state management by replacing the need for multiple@Publishedvariables.#Predicate: Provides type-checked queries, replacing the need forNSPredicatestrings.@Model: Used for SwiftData (the Swift-native version of CoreData).