WWDC24: What’s new in SwiftData | Apple

Поділитися
Вставка
  • Опубліковано 29 вер 2024
  • SwiftData makes it easy to add persistence to your app with its expressive, declarative API. Learn about refinements to SwiftData, including compound uniqueness constraints, faster queries with #Index, queries in Xcode previews, and rich predicate expressions. Join us to explore how you can use all of these features to express richer models and improve performance in your app.
    To discover how to build a custom data store or use the history API in SwiftData, watch “Create a custom data store with SwiftData” and “Track model changes with SwiftData history”.
    Discuss this video on the Apple Developer Forums:
    developer.appl...
    Explore related documentation, sample code, and more:
    SwiftData: developer.appl...
    Adopting SwiftData for a Core Data app: developer.appl...
    Meet SwiftData: developer.appl...
    Create a custom data store with SwiftData: developer.appl...
    Track model changes with SwiftData history: developer.appl...
    00:00 - Introduction
    00:57 - Adopt SwiftData
    02:11 - Customize the schema
    02:43 - #Unique macro
    03:37 - History API
    04:29 - Tailor a model container
    05:39 - Custom data stores
    06:41 - Xcode previews
    09:20 - Customize queries
    10:18 - #Expression macro
    11:56 - #Index macro
    More Apple Developer resources:
    Video sessions: apple.co/Video...
    Documentation: apple.co/Devel...
    Forums: apple.co/Devel...
    App: apple.co/Devel...

КОМЕНТАРІ •