Swiftpack.co - jeka-mel/Basement as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by jeka-mel.
jeka-mel/Basement 0.8.4
A lightweight wrapper on Realm. Provides isolation of persistence layer, Realm files management, more thread safety and a bit more.
⭐️ 1
🕓 20 weeks ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/jeka-mel/Basement.git", from: "0.8.4")


A lightweight wrapper on Realm to isolate and simplyfy a persistence layer of your iOS app.


  • Wraps Realm library instances:

    Yes, Realm is great, but library gets changed over the time and following the best practices, it shuold be isolated from the rest of the app so all lib's updates/changes/glitches could stay udater the hood.

  • Realm files management:

    Adds ability to easily switch between different Realm file sets (databases).

  • Adds more more thread safety so you could put a closer look on your app, not to Realm data managment rules:

    Each wrapped Realm instance is being held on independent thread and deallocated automatically once not used.

  • Brings ability to make read, filter & more requests to Realm objects by using a KeyPath.


Stars: 1
Last commit: 1 week ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.


Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics