mstdn.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A general-purpose Mastodon server with a 500 character limit. All languages are welcome.

Administered by:

Server stats:

13K
active users

#swiftdata

6 posts6 participants1 post today
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 noreferrer" 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 noreferrer" 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 noreferrer" 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 noreferrer" 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 noreferrer" 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 noreferrer" target="_blank">#<span>WWDC25</span></a></p>
Aleksander Stojanowski<p>I prepared a great surprise for myself… I was sure the <a href="https://iosdev.space/tags/WWDC25" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WWDC25</span></a> starts tomorrow. 🙈 I wasn’t even hyped yet, but I’m now, since this morning. 😁 I don’t have any expectations, but everything related to <a href="https://iosdev.space/tags/SwiftData" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftData</span></a> &amp; <a href="https://iosdev.space/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftUI</span></a> will be great. 😁</p>
Helge Heß<p>If you want to toy around with <a href="https://mastodon.social/tags/SwiftData" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftData</span></a>, but need some sample data, I have that <a href="https://mastodon.social/tags/Northwind" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Northwind</span></a> import. Which took a loooong time, but once it is in, it's ok 🙂 <br><a href="https://github.com/Northwind-swift/NorthwindSwiftData" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/Northwind-swift/Nor</span><span class="invisible">thwindSwiftData</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 noreferrer" 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 noreferrer" target="_blank">#<span>iOSDev</span></a> <a href="https://iosdev.space/tags/VisionPro" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>VisionPro</span></a> <a href="https://iosdev.space/tags/visionOS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>visionOS</span></a> <a href="https://iosdev.space/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftUI</span></a> <a href="https://iosdev.space/tags/SwiftData" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftData</span></a> <a href="https://iosdev.space/tags/IndieDev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>IndieDev</span></a> <a href="https://iosdev.space/tags/WWDC25" class="mention hashtag" rel="nofollow noopener noreferrer" 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 noreferrer" 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 noreferrer" target="_blank">#<span>iOSDev</span></a> <a href="https://iosdev.space/tags/VisionPro" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>VisionPro</span></a> <a href="https://iosdev.space/tags/visionOS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>visionOS</span></a> <a href="https://iosdev.space/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftUI</span></a> <a href="https://iosdev.space/tags/SwiftData" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftData</span></a> <a href="https://iosdev.space/tags/IndieDev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>IndieDev</span></a> <a href="https://iosdev.space/tags/WWDC25" class="mention hashtag" rel="nofollow noopener noreferrer" 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 noreferrer" 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 noreferrer" 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 noreferrer" target="_blank">#<span>swift</span></a></p>
Patrick McConnell<p>I restored my <a href="https://mastodon.social/tags/SwiftData" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftData</span></a> backing store via Time Machine today. Sometimes this stuff still works.</p><p>I keep corrupting the store by double clicking documents that open an older schema version from the trash. sigh.</p><p><a href="https://mastodon.social/tags/macOSDev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>macOSDev</span></a></p>
Florian<p>Got it fixed thanks to <span class="h-card" translate="no"><a href="https://hachyderm.io/@freiwald" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>freiwald</span></a></span> Store the entries in an array and write this array to the parent using append(contentsOf:) at once. Also very important: neither define inverse relations in the child model nor use them for insertion! I am now able to write 200k entries in 37s.<br> <br><a href="https://mastodon.social/tags/SwiftData" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftData</span></a></p>
Florian<p>Am I missing something, or are relationships in <a href="https://mastodon.social/tags/SwiftData" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftData</span></a> incredibly expensive? Inserting just 2,409 entries with a relationship takes 21s, compared to 0.5s without. Autosave is off, and I'm manually saving every 1,000 entries. What am I doing wrong?</p><p><a href="https://mastodon.social/tags/iOSDev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>iOSDev</span></a> <a href="https://mastodon.social/tags/Swift" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Swift</span></a></p>
Michael Rowe<p>My new jobby, job requires that I keep track of project time (It has been YEARS since I’ve had to do that). So I spent today doing a bit of coding and am ready to test out my time tracker this week. <a href="https://mstdn.social/tags/apple" class="mention hashtag" rel="tag">#<span>apple</span></a> <a href="https://mstdn.social/tags/developer" class="mention hashtag" rel="tag">#<span>developer</span></a> <a href="https://mstdn.social/tags/swift" class="mention hashtag" rel="tag">#<span>swift</span></a> <a href="https://mstdn.social/tags/swiftui" class="mention hashtag" rel="tag">#<span>swiftui</span></a> <a href="https://mstdn.social/tags/swiftData" class="mention hashtag" rel="tag">#<span>swiftData</span></a></p>
sandor<p>Okay, so my crossposting app for Mastodon and Bluesky is taking shape now. ViewModel needs some cleanup with optionals (a side effect of making the <a href="https://social.appbakery.ee/tags/swiftdata" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftData</span></a> <a href="https://social.appbakery.ee/tags/cloudkit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CloudKit</span></a> compatible)<br><br><a href="https://social.appbakery.ee/tags/bluesky" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bluesky</span></a> <a href="https://social.appbakery.ee/tags/mastodon" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>mastodon</span></a> <a href="https://social.appbakery.ee/tags/ios" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ios</span></a> <a href="https://social.appbakery.ee/tags/swift" class="mention hashtag" rel="nofollow noopener noreferrer" 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 noreferrer" 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 noreferrer" target="_blank">#<span>iOSDev</span></a> <a href="https://iosdev.space/tags/VisionPro" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>VisionPro</span></a> <a href="https://iosdev.space/tags/visionOS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>visionOS</span></a> <a href="https://iosdev.space/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftUI</span></a> <a href="https://iosdev.space/tags/SwiftData" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftData</span></a> <a href="https://iosdev.space/tags/IndieDev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>IndieDev</span></a></p>
Patrick McConnell<p>Figured out why my <a href="https://mastodon.social/tags/SwiftData" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftData</span></a> store was getting corrupted when no testers have seen this issue or even had a crash yet.</p><p>If I double clicked a file to be opened in my app Finder was digging out some old build from the trash with an old schema. </p><p>Inverse of works on my machine. Can only fail on my machine. Not helpful.</p><p><a href="https://mastodon.social/tags/macOSDev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>macOSDev</span></a></p>
Patrick McConnell<p><a href="https://mastodon.social/tags/SwiftData" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftData</span></a> <a href="https://mastodon.social/tags/macOSDev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>macOSDev</span></a> <a href="https://mastodon.social/tags/iOSDev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>iOSDev</span></a></p><p>do this instead:</p><p>var myContainer = myModelContainer()</p><p>WindowGroup {<br> MyView()<br>}<br>.modelContainer(myContainer())</p>
Patrick McConnell<p>Using <a href="https://mastodon.social/tags/SwiftData" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftData</span></a> and you're instantiating your container inline with the Window creation something like this:</p><p>WindowGroup {<br> MyView()<br>}<br>.modelContainer(myModelContainer())</p><p>Will work fine on a Mac. The same thing on iOS will fail if you rotate the device or otherwise cause the Window to be recreated. The model context will be reset/recreated throwing an error.</p><p>Instantiate the container in your structure and pass that instead and all is good.</p><p>Ask me how I know?</p><p><a href="https://mastodon.social/tags/macOSDev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>macOSDev</span></a> <a href="https://mastodon.social/tags/iOSDev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>iOSDev</span></a></p>
Denis Gladkikh<p>This is one of the most satisfying projects I have ever worked on. MacInspector 0.1. Going to open a beta soon.</p><p><a href="https://mastodon.social/tags/SwiftData" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftData</span></a> <a href="https://mastodon.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftUI</span></a> <a href="https://mastodon.social/tags/macOS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>macOS</span></a> <a href="https://mastodon.social/tags/Swift" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Swift</span></a></p>
Mohammad Azam<p>🚨 Livestream Alert!</p><p>Join me on May 15 at 11:00 AM CST for a hands-on SwiftData livestream. Learn how to set up SwiftData, perform CRUD operations, and understand its built-in architecture — all in SwiftUI.</p><p><a href="https://youtube.com/live/RWNbqQcW-Tw?feature=share" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">youtube.com/live/RWNbqQcW-Tw?f</span><span class="invisible">eature=share</span></a></p><p><a href="https://iosdev.space/tags/SwiftData" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftData</span></a> <a href="https://iosdev.space/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftUI</span></a> <a href="https://iosdev.space/tags/iOSDev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>iOSDev</span></a></p>
Malcolm Hall<p>Found another bug in <a href="https://mastodon.social/tags/SwiftData" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftData</span></a> and submitted Feedback this time with a Swift Testing suite to see if that helps get it fixed faster:</p><p>FB17593538: Inserted child model loses its relation to parent upon save if a fetch for the parent is done using includePendingChanges false in between insert and save</p><p><a href="https://github.com/feedback-assistant/reports/issues/658" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/feedback-assistant/</span><span class="invisible">reports/issues/658</span></a></p><p>Note: Core Data can do this without issue.</p>
Patrick McConnell<p>Apparently since I launched my TestFlight beta for Cartographer something has broken with <a href="https://mastodon.social/tags/SwiftData" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftData</span></a> and now the app crashes at launch. Unclear if it's just my machine as I don't see any tester crashes reported.</p><p>Happy Monday everyone!</p><p><a href="https://mastodon.social/tags/macOSDev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>macOSDev</span></a></p>