Just released #SwiftWebPush 0.4.2, which adds experimental support for Declarative Push Notifications, introduced in Safari 18.4 Beta. It also fixes some incorrect documentation examples, failing CI tests, improves the maximum size of some JSON payloads, and addresses a mismatch that could occur between key IDs as encoded by a service worker and the server's records.
https://github.com/mochidev/swift-webpush/releases/tag/0.4.2