MagicKit is an open-source library that exposes some of Magic for Mac's codebase. It's currently a work in progress, as the main goal for it in the future is turning it into an easy way to integrate drawing methods in your app for both Mac and iOS.
MagicKit can be installed via the Swift Package Manager, directly on Xcode.