Thinking about how to update my SwiftData models so I don't need to change code everywhere. (This is in addition to my typealiases earlier.)

The rest of my code can just use notes. notesV1 can't be private because the migration needs to know about it, but it's new.

This seems safe, and if so very little code updating will be required.

Note: I am NOT changing the schema just to make these fields non-optional, but since I'm changing the schema anyway it seems a reasonable step. #SwiftData

I've also been working on a Python script to pin/reset data. I'll post it in a few days, but here's a few things I've learned so far:

To show the top level of your repo:
git rev-parse --show-toplevel

To get the bundle ID of your project from there:
xcodebuild -showBuildSettings
(Search for PRODUCT_BUNDLE_IDENTIFIER =)

To get the simulator's container:
xcrun simctl get_app_container booted BUNDLE_ID data

From that directory, look in Library/Application Support. #SwiftData #Xcode