mastodon.world is one of the many independent Mastodon servers you can use to participate in the fediverse.
Generic Mastodon server for anyone to use.

Server stats:

8.1K
active users

#swiftdata

3 posts3 participants0 posts today
Axel Le Pennec<p>I filed this feedback to make Enums better with SwiftData: FB19106719</p><p><span class="h-card" translate="no"><a href="https://hachyderm.io/@ricketson" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>ricketson</span></a></span> <span class="h-card" translate="no"><a href="https://mastodon.social/@lucabernardi" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>lucabernardi</span></a></span> <span class="h-card" translate="no"><a href="https://indieweb.social/@curtclifton" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>curtclifton</span></a></span> </p><p>I couldn’t find anyone working in the <a href="https://iosdev.space/tags/CoreData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CoreData</span></a> or <a href="https://iosdev.space/tags/SwiftData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftData</span></a> team so I ping you. Thank you.</p>
Axel Le Pennec<p>I enjoy using <a href="https://iosdev.space/tags/SwiftData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftData</span></a> until I have to use a RawRepresentable (String or Int) enum in a Predicate.</p><p>Any tips to share?</p><p>Should I only store the enum RawValue instead of using the Enum type?</p>
Reddit Tech VN Bot<p>Ứng dụng "Journey" vừa ra mắt trên App Store, được phát triển solo chỉ trong 6 ngày với 82 commits! Ứng dụng giúp ghi lại những khoảnh khắc đáng nhớ qua văn bản, giọng nói, ảnh &amp; video, chạy hoàn toàn trên thiết bị của bạn, đảm bảo quyền riêng tư. <br><a href="https://mastodon.maobui.com/tags/iOS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>iOS</span></a> <a href="https://mastodon.maobui.com/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftUI</span></a> <a href="https://mastodon.maobui.com/tags/SwiftData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftData</span></a> <a href="https://mastodon.maobui.com/tags/solodev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>solodev</span></a> <a href="https://mastodon.maobui.com/tags/ungdung" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ungdung</span></a> <a href="https://mastodon.maobui.com/tags/mobileapp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>mobileapp</span></a> <a href="https://mastodon.maobui.com/tags/l%E1%BA%ADptr%C3%ACnh" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>lậptrình</span></a> <a href="https://mastodon.maobui.com/tags/phattrienungdung" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>phattrienungdung</span></a></p><p><a href="https://www.reddit.com/r/SideProject/comments/1m63mx7/6_days_82_commits_my_second_solo_app_is_now_live/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">reddit.com/r/SideProject/comme</span><span class="invisible">nts/1m63mx7/6_days_82_commits_my_second_solo_app_is_now_live/</span></a></p>
Jonathan :mac:<p>Does anyone know how to move from an unversioned CoreData / Swift Data model to a versioned SwiftData model? I’m getting the following error:</p><p>"Cannot use staged migration with an unknown coordinator model version."</p><p><a href="https://techhub.social/tags/indiedev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>indiedev</span></a> <a href="https://techhub.social/tags/iosdev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>iosdev</span></a> <a href="https://techhub.social/tags/swiftdata" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>swiftdata</span></a> <a href="https://techhub.social/tags/swift" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>swift</span></a></p>
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>
Roman<p>Anyone done heavy <a href="https://mastodon.social/tags/SwiftData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftData</span></a> migrations with iCloud sync? If I turn it off, then the migration is successful, but as soon as I add `cloudKitDatabase: .automatic` to the ModelConfiguration it crashes with Error.loadIssueModelContainer. Cannot find anything online</p>
Helge Heß<p>Is the <a href="https://mastodon.social/tags/SwiftLang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftLang</span></a> Predicate macro used for anything else but <a href="https://mastodon.social/tags/SwiftData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftData</span></a>? E.g. RealityKit has its own `QueryPredicate`.<br>It almost seems that Predicate is indeed somewhat useless w/o also standardizing the static metadata property, currently part of SwiftData's `PersistentModel`: <a href="https://developer.apple.com/documentation/swiftdata/persistentmodel/schemametadata" 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/persistentmodel/schemametadata</span></a><br>As per <a href="https://forums.swift.org/t/keypath-string/77732" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">forums.swift.org/t/keypath-str</span><span class="invisible">ing/77732</span></a></p>
Cameron McEfee<p>What’s the current story around CloudKit sharing and <a href="https://mastodon.social/tags/swiftdata" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>swiftdata</span></a>? I know the common understanding is “it isn’t natively supported” but I see lots of hints (but no examples) online that it’s doable with extra work. I’m curious what that extra work actually is and whether it’s something attainable.</p>
Aleksander Stojanowski<p>Any advice from more experienced <a href="https://iosdev.space/tags/IndieHackers" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>IndieHackers</span></a> when it comes to such operations? 😅<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/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>
Jon Duenas<p>I was hoping I would be able to one day migrate away from <a href="https://mastodon.world/tags/SwiftData" class="mention hashtag" rel="tag">#<span>SwiftData</span></a> in my app. I built all this infrastructure to try and add abstraction around it for when that day would come. But, since I have CloudKit sync in production already, this is starting to feel more painful than it’ll be worth. I think I just need to embrace it. But STILL no sectioned Query is making this difficult.</p>
Helge Heß<p><a href="https://mastodon.social/tags/SwiftData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftData</span></a> is a beauty. (also, all that WET)</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>
Juan Arzola<p>I kind of want <a href="https://sfba.social/tags/SwiftData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftData</span></a> to yell at me early if I try to access a temporary ID before an object is saved. The API hides the concept of temporary IDs, but those late crashes when using them are very well visible.</p>
Konstantin 🔭<p>Does anyone know if there is a way to make SwiftData print more verbose model serialisation / migration errors?</p><p>For example, I'm converting a model field from String to a raw representable Enum, but something in the data is failing during automigration?</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/SwiftData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftData</span></a> <a href="https://mastodon.social/tags/SwiftDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftDev</span></a></p>
Axel Le Pennec<p>Oh wow 😲</p><p>SwiftData models are now Sendable! 🤩</p><p>And it has been backported to iOS 17.0+! 🥳</p><p>This will make working in with concurrent code easier.</p><p>Documentation updated during WWDC25: <a href="https://developer.apple.com/documentation/swiftdata/model" 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/model</span></a>()</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/WWDC25" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WWDC25</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>
Patrick McConnell<p>One of the more tedious things to do with <a href="https://mastodon.social/tags/Xcode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Xcode</span></a> and <a href="https://mastodon.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftUI</span></a> is to set up previews for complex scenarios such as things with deep <a href="https://mastodon.social/tags/SwiftData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftData</span></a> schemas.</p><p>Its also one of the more rewarding things. It's worth it 99 out of 100 times.</p><p>Not only can you iterate on views and components but it helps you think about your apps architecture. I almost always consider different structure to my code when I get stuck on creating a preview.</p><p><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>
Nico Reese<p>It's 2025 and it's still incredibly hard to achieve good iCloud sync without duplication of data. It's the developer's job to do this and it's so error prone if you don't do everything correctly. <a href="https://mastodon.social/tags/WWDC" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WWDC</span></a> <a href="https://mastodon.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftUI</span></a> <a href="https://mastodon.social/tags/CoreData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CoreData</span></a> <a href="https://mastodon.social/tags/SwiftData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftData</span></a></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>