• Joined Safie 2024/3 ◦ Previously STORES, Chatwork, Buyma, etc. • Living in Japan since 2011 • Hobbies ◦ Playing with my kids 🧒👧 ◦ Games 🎮 ◦ Tennis 🎾 ◦ Sake 🍶🍺
framework that allows you to write your model code declaratively to add managed persistence and efficient model fetching. So, it’s CoreData but way easier.
model’s schema from Swift code. SwiftData natively adapts your value type properties to be used as attributes. Basic and more complex values are able to be used as well (structs, enums, codable types like collections)
use to change your schema. @Relationship - you can control the choice of inverses and specify delete propagation rules. @Transient - allows you to choose a property not to be stored by SwiftData Other Macros 10
easily load and filter anything stored in your database with a single line of code. SwiftData supports observable for your modeled properties. @Query 12
I built the app with SwiftData 1.0... If anyone knows a way to get it to be able to filter by an enum case please talk to me after my LT! @Query A problem I found 14
your own custom Data Store (for example: JSONDataStore) #Unique Macro Preview Modifier Compound Predicates Add Index for commonly used KeyPaths or combination of KeyPaths (More Efficient/Faster Querying!) SwiftData 2.0 (WWDC 2024) New Features! 21
a custom data store with SwiftData - https://developer.apple.com/wwdc24/10138 Track model changes with SwiftData history - https://developer.apple.com/wwdc24/10075 SwiftData 2.0 (WWDC 2024) References 26