shakedown.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A community for live music fans with roots in the jam scene. Shakedown Social is run by a team of volunteers (led by @clifff and @sethadam1) and funded by donations.

Administered by:

Server stats:

267
active users

#swiftdata

0 posts0 participants0 posts today
aaron<p>Let’s say I want to display &gt; 100k items from <a href="https://mastodon.social/tags/SwiftData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftData</span></a> in a Table view in <a href="https://mastodon.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftUI</span></a>: is there a way to do that lazily so performance doesn’t become a nightmare? Or do I need to use AppKit’s NSTableView instead? <a href="https://mastodon.social/tags/macOSDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>macOSDev</span></a> <a href="https://mastodon.social/tags/Swift" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Swift</span></a></p>
Axel Le Pennec<p>I wish Apple used SwiftData in its sample <a href="https://iosdev.space/tags/WWDC25" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WWDC25</span></a> code projects...</p><p>It would have been a great opportunity to showcase how to use SwiftData properly with App Intents using an AppDependencyManager for example.</p><p><a href="https://iosdev.space/tags/SwiftData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftData</span></a> <a href="https://iosdev.space/tags/iOSDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>iOSDev</span></a></p>
Aleksander Stojanowski<p>Especially the <a href="https://iosdev.space/tags/SwiftData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftData</span></a> related code. I moved everything into the background thread, so that app works smoothly, but at the cost of code readability. Until I worked daily on that, it seemed fine. Nowadays, I see a lot of things I could improve.</p>
Tim De Jong<p>I'm loving the new <span class="h-card" translate="no"><a href="https://hachyderm.io/@pointfreeco" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>pointfreeco</span></a></span> SharingGRDB framework! It's so much better to work with value-type models than reference-type models. </p><p>In the code below I'm migrating from SwiftData to SharingGRDB. First I put the creation of the Weight.Draft inside the async block below. This gave me an error because the SwiftData models are not sendable. The SharingGRDB models are so the fix was so simple :) </p><p><a href="https://mastodon.social/tags/swift" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>swift</span></a> <a href="https://mastodon.social/tags/swiftlang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>swiftlang</span></a> <a href="https://mastodon.social/tags/swiftdata" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>swiftdata</span></a> <a href="https://mastodon.social/tags/sharinggrdb" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>sharinggrdb</span></a> <a href="https://mastodon.social/tags/structuredconcurrency" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>structuredconcurrency</span></a></p>
Axel Le Pennec<p>Well, too good to be true... 😢</p><p><a href="https://iosdev.space/tags/SwiftData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftData</span></a> inheritance is only available for iOS 26, as specified in the <a href="https://iosdev.space/tags/WWDC25" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WWDC25</span></a> session and the new article "Adopting inheritance in SwiftData".</p><p>Article: <a href="https://developer.apple.com/documentation/swiftdata/adopting-inheritance-in-swiftdata" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">developer.apple.com/documentat</span><span class="invisible">ion/swiftdata/adopting-inheritance-in-swiftdata</span></a></p>
Axel Le Pennec<p>Oh! <a href="https://iosdev.space/tags/SwiftData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftData</span></a> inheritance seems to be available on iOS 17+!</p><p>Documentation: <a href="https://developer.apple.com/documentation/swiftdata/schema/entity/superentity" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">developer.apple.com/documentat</span><span class="invisible">ion/swiftdata/schema/entity/superentity</span></a></p><p><a href="https://iosdev.space/tags/WWDC25" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WWDC25</span></a></p>
Swift Remote Studio<p>Hey Swift, iOS, Indie Developers! 👋🏻</p><p>Join us for a Developer Goals meeting today at 12:30PM PT!</p><p>💻 Sign up at <a href="https://swiftremotestudio.com" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">swiftremotestudio.com</span><span class="invisible"></span></a><br>🎪 Join the Slack<br>🏁 Go to the `goals-friday` Slack channel for the Zoom link</p><p>See you there!</p><p><a href="https://iosdev.space/tags/iOSDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>iOSDev</span></a> <a href="https://iosdev.space/tags/VisionPro" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>VisionPro</span></a> <a href="https://iosdev.space/tags/visionOS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>visionOS</span></a> <a href="https://iosdev.space/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftUI</span></a> <a href="https://iosdev.space/tags/SwiftData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftData</span></a> <a href="https://iosdev.space/tags/IndieDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>IndieDev</span></a> <a href="https://iosdev.space/tags/WWDC25" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WWDC25</span></a></p>
Evan K. Stone<p>Hey Swift, iOS, Indie Developers! 👋🏻</p><p>Join us for a Developer Goals meeting today at 12:30PM PT!</p><p>💻 Sign up at <a href="https://swiftremotestudio.com" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">swiftremotestudio.com</span><span class="invisible"></span></a><br>🎪 Join the Slack<br>🏁 Go to the `goals-friday` Slack channel for the Zoom link</p><p>See you there!</p><p><a href="https://iosdev.space/tags/iOSDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>iOSDev</span></a> <a href="https://iosdev.space/tags/VisionPro" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>VisionPro</span></a> <a href="https://iosdev.space/tags/visionOS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>visionOS</span></a> <a href="https://iosdev.space/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftUI</span></a> <a href="https://iosdev.space/tags/SwiftData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftData</span></a> <a href="https://iosdev.space/tags/IndieDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>IndieDev</span></a> <a href="https://iosdev.space/tags/WWDC25" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WWDC25</span></a></p>
Deirdre Saoirse Moen<p>Adventures in mystery: if you use @Attribute(.externalStorage) in your <a href="https://hachyderm.io/tags/SwiftData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftData</span></a> app, how can you determine whether or not your data is stored in your db or externally?</p><p>Where's it stored in a Document-based app on macOS?</p><p>Fun times from exploring an (unrelated) db migration issue.</p><p><a href="https://deirdre.dev/posts/swift-data-images/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">deirdre.dev/posts/swift-data-i</span><span class="invisible">mages/</span></a></p><p><a href="https://hachyderm.io/tags/swift" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>swift</span></a></p>
Evan K. Stone<p>Swift Developers and Indies! 📣 </p><p>Join us for the Swift Developer Goals meeting today at 12:30PM PT:</p><p>💻 Sign up at <a href="https://swiftremotestudio.com" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">swiftremotestudio.com</span><span class="invisible"></span></a><br>🎪 Join the Slack<br>🏁 Go to the `goals-friday` channel for the Zoom link</p><p>See you there!</p><p><a href="https://iosdev.space/tags/iOSDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>iOSDev</span></a> <a href="https://iosdev.space/tags/VisionPro" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>VisionPro</span></a> <a href="https://iosdev.space/tags/visionOS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>visionOS</span></a> <a href="https://iosdev.space/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftUI</span></a> <a href="https://iosdev.space/tags/SwiftData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftData</span></a> <a href="https://iosdev.space/tags/IndieDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>IndieDev</span></a></p>
Malcolm Hall<p><a href="https://mastodon.social/tags/SwiftData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftData</span></a> @.Model's implementation of id breaks the Identifiable protocol because it is not stable between insert and save. This means it does not work reliably with .sheet(item:) and is inefficient with List/ForEach.</p><p><a href="https://stackoverflow.com/a/79616883/259521" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">stackoverflow.com/a/79616883/2</span><span class="invisible">59521</span></a></p>
Aleksander Stojanowski<p>I published a hot fix update this morning, but I even forgot to post about it. But it’s live and you can download it already. 😅 I, on the other hand, have been struggling with moving <a href="https://iosdev.space/tags/SwiftData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftData</span></a> models to the shared framework. I can swear I worked yesterday! 😆<br><a href="https://iosdev.space/tags/BuildInPublic" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>BuildInPublic</span></a> <a href="https://iosdev.space/tags/IndieHacker" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>IndieHacker</span></a> <a href="https://iosdev.space/tags/iOSDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>iOSDev</span></a> <a href="https://iosdev.space/tags/IndieDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>IndieDev</span></a></p>
Keith Harrison :clubtwit:<p>How do you write SwiftData predicates to query for parent relationships? <a href="https://twit.social/tags/iOSDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>iOSDev</span></a> <a href="https://twit.social/tags/SwiftData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftData</span></a> <a href="https://twit.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftUI</span></a> <a href="https://useyourloaf.com/blog/swiftdata-predicates-for-parent-relationships/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">useyourloaf.com/blog/swiftdata</span><span class="invisible">-predicates-for-parent-relationships/</span></a></p>
Evan K. Stone<p>Join us for the Swift Developer Goals meeting today at 12:30PM PT! 🏁</p><p>Sign up for the Slack access at swiftremotestudio.com and find the link to the Zoom meeting in the goals-friday channel.</p><p>In addition to goal setting, we also usually chat about: <br><a href="https://iosdev.space/tags/iOSDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>iOSDev</span></a> <a href="https://iosdev.space/tags/VisionPro" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>VisionPro</span></a> <a href="https://iosdev.space/tags/visionOS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>visionOS</span></a> <a href="https://iosdev.space/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftUI</span></a> <a href="https://iosdev.space/tags/SwiftData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftData</span></a></p>
Patrick McConnell<p>I mentioned last week I would put together a blog post gathering my thoughts and process in working thru <a href="https://mastodon.social/tags/SwiftData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftData</span></a> Migrations.</p><p>Have at it…</p><p>SwiftData Migrations and the Real World: <a href="https://pmcconnell.micro.blog/2025/04/15/swiftdata-migrations-and-the-real.html" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">pmcconnell.micro.blog/2025/04/</span><span class="invisible">15/swiftdata-migrations-and-the-real.html</span></a></p><p><a href="https://mastodon.social/tags/Swift" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Swift</span></a> <a href="https://mastodon.social/tags/iOSDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>iOSDev</span></a> <a href="https://mastodon.social/tags/macOSDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>macOSDev</span></a></p>
Rasmus Grouleff (he/him)<p>Heeeelp!</p><p>What does the following error mean, and how do I fix it? It happens, when I call `modelContext.save()` in a SwiftUI view.</p><p>"SwiftData/ModelCoders.swift:105: Fatal error: Composite Coder only supports Keyed Container”</p><p>Edit: Solved! It appears SwiftData does not support Duration properties in models. Changing it to a TimeInterval instead fixes it.</p><p><a href="https://mstdn.social/tags/Swift" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Swift</span></a> <a href="https://mstdn.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftUI</span></a> <a href="https://mstdn.social/tags/SwiftData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftData</span></a></p>
Patrick McConnell<p>Biggest tip I can offer when working through a migration strategy, is to work on a new git branch so you can delete a bad data store, restore the old working branch and start over.</p><p>You can create a rollback strategy as well but I found it just as easy to delete the bad data store, revert to working data and try again.</p><p>If you don't start a migration clean and it has previously failed you may find a lot of duplicate data once it does work all the way thru.</p><p> <a href="https://mastodon.social/tags/SwiftData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftData</span></a> <a href="https://mastodon.social/tags/Swift" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Swift</span></a> <a href="https://mastodon.social/tags/iOSDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>iOSDev</span></a> <a href="https://mastodon.social/tags/macOSDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>macOSDev</span></a></p>
Patrick McConnell<p>In my case I was migrating from a schema where a relationship was becoming many to many. I needed to gather all the current single relationships in willMigrate and then in didMigrate I had to add them to the new to many relationship.</p><p>There is no relationship between willMigrate and didMigrate so you need to do some sketchy (globals) things to pass data across contexts.</p><p>Once I'm comfortable I've gotten this all correct, I’ll do a blog post.</p><p><a href="https://mastodon.social/tags/SwiftData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftData</span></a> <a href="https://mastodon.social/tags/Swift" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Swift</span></a> <a href="https://mastodon.social/tags/iOSDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>iOSDev</span></a> <a href="https://mastodon.social/tags/macOSDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>macOSDev</span></a></p>
Patrick McConnell<p>You do not need to update any models in willMigrate if they are the same across schemas. </p><p>You may only need to make changes in didMigrate, for example setting defaults for new Model values.</p><p> <a href="https://mastodon.social/tags/SwiftData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftData</span></a> <a href="https://mastodon.social/tags/Swift" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Swift</span></a> <a href="https://mastodon.social/tags/iOSDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>iOSDev</span></a> <a href="https://mastodon.social/tags/macOSDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>macOSDev</span></a></p>
Patrick McConnell<p>TIL working with <a href="https://mastodon.social/tags/SwiftData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftData</span></a> migrations the past few days.</p><p>The documentation is non-existent. The sample code, tutorials, etc are all copying mostly trivial examples and sadly each other.</p><p>A custom migration schema has two phases each is passed a context. The first, willMigrate, will have the context for the schema you are migrating from, the second, didMigrate will have the newest context.</p><p><a href="https://developer.apple.com/documentation/swiftdata/migrationstage/custom(fromversion:toversion:willmigrate:didmigrate:)" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">developer.apple.com/documentat</span><span class="invisible">ion/swiftdata/migrationstage/custom(fromversion:toversion:willmigrate:didmigrate:)</span></a></p><p><a href="https://mastodon.social/tags/Swift" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Swift</span></a> <a href="https://mastodon.social/tags/iOSDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>iOSDev</span></a> <a href="https://mastodon.social/tags/macOSDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>macOSDev</span></a></p>