tyiu on Nostr: GM! I’m finding SwiftData to be a bit difficult to work with, too. Are you using ...
GM! I’m finding SwiftData to be a bit difficult to work with, too. Are you using value transformers? For the time being, I’m using SwiftData as a semi-dumb data store for Nostr event kinds and local app settings, and I load everything into my in-memory cache on app launch. I hope to integrate more closely to SwiftData as Apple improves it over time.
Published at
2024-07-31 13:43:02Event JSON
{
"id": "d3a212ebed48464c7500e240c360d3638a76aecebbbda74b78e5eb86aa0a4a9f",
"pubkey": "2779f3d9f42c7dee17f0e6bcdcf89a8f9d592d19e3b1bbd27ef1cffd1a7f98d1",
"created_at": 1722433382,
"kind": 1,
"tags": [
[
"e",
"2b1dda78cb6d202f113e6f924e12fbea90676ff7b27321ebb4f545a3773d43fd",
"",
"root"
],
[
"p",
"c5cfda98d01f152b3493d995eed4cdb4d9e55a973925f6f9ea24769a5a21e778"
]
],
"content": "GM! I’m finding SwiftData to be a bit difficult to work with, too. Are you using value transformers? For the time being, I’m using SwiftData as a semi-dumb data store for Nostr event kinds and local app settings, and I load everything into my in-memory cache on app launch. I hope to integrate more closely to SwiftData as Apple improves it over time.",
"sig": "2ea0d601e58ce4f2d24c222eee3ec7ba49443c0c2068a54235ca3afff760f7b4b9abae2784a8832ae55b0ca0db8c9daeb636d61215a3f51c8f10f7b0cc855b00"
}