kodecocodes / m3-wti-materials

The projects and the assets that accompany the Writing Tools module
Apache License 2.0
0 stars 0 forks source link

Add some sort of data persistence to the cover letter view #4

Open SuzGupta opened 1 month ago

SuzGupta commented 1 month ago

We need to store data somewhere so we can demonstrate pausing this and resume this around an active Writing Tools session so Writing Tools does not mess up the stored text.

Pasting in from discussion with @drmarkpowell:

SuzGupta commented 1 month ago

Add models for

SuzGupta commented 4 days ago

Adding further thoughts from @drmarkpowell as we discuss an easy yet meaningful way to demonstrate the tools pause and resume:

Maybe we can just write changes to a file in documents, or UserDefaults? That’s all Josh did for App Intents…put all his “database” into a local data file Maybe we could have a simple “file backup” handler that version controls your edits as you write, and just disable/enable that. Then it’s completely under your control You can just define a struct that’s Codable and read/write it at the proper time whenever you see fit, and “pause” it for Writing Tools changes

Link to Josh's repo to see what we can glean: https://github.com/kodecocodes/m3-sai-materials