/SwiftDataDemo

Quick and dirty demo of SwiftData, ModelActor, cascading deletions, etc.

Primary LanguageSwift

Swift Data Demonstration

A few things illustrated here:

  1. Use of @ModelActor macro to create a ModelActor type.
  2. Use of custom environment variable to propagate that to the views.
  3. Demonstration of cascading delete relationship.

Developed in Swift on Xcode 16 and Swift 6.

License

Copyright © 2024 Robert Ryan. All rights reserved.

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.


1 Oct 2024