#SwiftData

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 #SwiftData #CloudKit compatible)

#bluesky #mastodon #ios #swift

A social media timeline displaying posts by user "Kuba Suder," featuring three tweets with various emojis expressing emotions and a post from "Tempopo" promoting a podcast with a mention of a composer. The interface includes options for interactions like replies and likes
2025-05-16

Swift Developers and Indies! πŸ“£

Join us for the Swift Developer Goals meeting today at 12:30PM PT:

πŸ’» Sign up at swiftremotestudio.com
πŸŽͺ Join the Slack
🏁 Go to the `goals-friday` channel for the Zoom link

See you there!

#iOSDev #VisionPro #visionOS #SwiftUI #SwiftData #IndieDev

Patrick McConnellpatrickmcconnell
2025-05-15

Figured out why my store was getting corrupted when no testers have seen this issue or even had a crash yet.

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.

Inverse of works on my machine. Can only fail on my machine. Not helpful.

Patrick McConnellpatrickmcconnell
2025-05-14

do this instead:

var myContainer = myModelContainer()

WindowGroup {
MyView()
}
.modelContainer(myContainer())

Patrick McConnellpatrickmcconnell
2025-05-14

Using and you're instantiating your container inline with the Window creation something like this:

WindowGroup {
MyView()
}
.modelContainer(myModelContainer())

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.

Instantiate the container in your structure and pass that instead and all is good.

Ask me how I know?

Denis Gladkikhoutcoldman
2025-05-14

This is one of the most satisfying projects I have ever worked on. MacInspector 0.1. Going to open a beta soon.

2025-05-13

🚨 Livestream Alert!

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.

youtube.com/live/RWNbqQcW-Tw?f

#SwiftData #SwiftUI #iOSDev

Malcolm Hallmalhal
2025-05-13

Found another bug in and submitted Feedback this time with a Swift Testing suite to see if that helps get it fixed faster:

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

github.com/feedback-assistant/

Note: Core Data can do this without issue.

Patrick McConnellpatrickmcconnell
2025-05-12

Apparently since I launched my TestFlight beta for Cartographer something has broken with and now the app crashes at launch. Unclear if it's just my machine as I don't see any tester crashes reported.

Happy Monday everyone!

Malcolm Hallmalhal
2025-05-12

@.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.

stackoverflow.com/a/79616883/2

Aleksander Stojanowskiostojan@iosdev.space
2025-05-09

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 #SwiftData models to the shared framework. I can swear I worked yesterday! πŸ˜†
#BuildInPublic #IndieHacker #iOSDev #IndieDev

Keith Harrison :clubtwit:kharrison@twit.social
2025-05-09

How do you write SwiftData predicates to query for parent relationships? #iOSDev #SwiftData #SwiftUI useyourloaf.com/blog/swiftdata

Aleksander Stojanowskiostojan@iosdev.space
2025-05-07

I searched a bit for what might be a problem and luckily I found the solution! All I needed to do was to move injecting #SwiftData model container into my RootView instead of WindowGroup as I did up to this point.

2025-05-03

Join me for SwiftData Fundamentals β€” a hands-on workshop on May 16, 2025 (11 AM–2 PM CST)!

Learn CRUD, relationships, unit testing, and CloudKit integration in SwiftData.

Perfect for beginners & pros alike!

πŸ”— azamsharp.teachable.com/p/swif

#SwiftLang #iOSDev #SwiftData

2025-05-02

Join us for the Swift Developer Goals meeting today at 12:30PM PT! 🏁

Sign up for the Slack access at swiftremotestudio.com and find the link to the Zoom meeting in the goals-friday channel.

In addition to goal setting, we also usually chat about:
#iOSDev #VisionPro #visionOS #SwiftUI #SwiftData

2025-04-28

πŸš€ Join me LIVE as we dive into SwiftData!
Learn how to perform CRUD operations, explore SwiftData architecture, and unlock the full power of model contexts and queries.

Don’t miss it!

youtube.com/live/1IQ4TRnW6o0?f

#SwiftData #SwiftUI

2025-04-25

Join us for the Swift Developer Goals meeting today at 12:30PM PT! 🏁

Sign up for the Slack access at swiftremotestudio.com and find the link to the Zoom meeting in the goals-friday channel.

In addition to goal setting, we also usually chat about:
#iOSDev #VisionPro #visionOS #SwiftUI #SwiftData

2025-04-25

Join us for the Swift Developer Goals meeting today at 12:30PM PT! 🏁

Sign up for the Slack access at swiftremotestudio.com and find the link to the Zoom meeting in the goals-friday channel.

In addition to goal setting, we also usually chat about:
#iOSDev #VisionPro #visionOS #SwiftUI #SwiftData

Yannick Lungyanlu
2025-04-23

I dug a little deeper into SwiftData and added one last quality of life improvement for version 2.0: widgets now show favorites and seen status and can now be filtered accordingly ✨

Screenshots showing Home Screen widgets and the configuration menu
Helge Heßhelge
2025-04-21

@leogdion For I also have Lighter, which I think is actually really good: github.com/Lighter-swift
And for Core Data I have replicated the macros: github.com/Data-swift/ManagedM
This by @mattiem might also be relevant to your article: mastodon.social/@mattiem/11435

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst