SwiftData debugging tool

Hello everyone!

I’m working on a tool that is dedicated to debugging SwiftData databases. It’s based on Core Data, but trying to mimic the style and match the information with SwiftData as much as possible.

Even filtering mimics the predicate syntax as much as possible. Currently, not all types are supported yet, but those that are supported behave as closely as possible to the real Predicate. It’s actually re-creating a real Predicate from the input string and then initializing NSPredicate from it. Also, SourceKitten is used for syntax highlighting and autocomplete.

Each feature is described in more detail here with information on how it is implemented.
I would be glad to hear your feedback or recommendations on improving it.

Thanks,
Oleksii

12 Likes

I have also just added the ability to preview the content of cells with Plist data.

3 Likes

And new update: added the ability to preview models with a plan to show the connection of relations in future updates

2 Likes

I have created a new Swift package, which is the same app code base recompiled for iOS and wrapped conveniently for easy integration into your app

2 Likes

I have finally added a feature to debug your database via the network right from the iphone