Mark Battistella welcomes support for SwiftDataCounter through GitHub Sponsors, paypal.me, paypal.me, and paypal.me. If you find this package useful, please consider supporting it.
When working with an Xcode project:
When working with a Swift Package Manager manifest:
Select a package version:
1.1.0
main
SwiftDataCounter is a Swift package that provides live tracking of SwiftData model counts with optional per-model or default limits. It listens for ModelContext save notifications and automatically refreshes counts, while also logging changes and limit crossings using OSLog.