The macOS SDK is the same Swift package as iOS: one dependency, one catalog, one set of default documents for both.
1. Install
In Xcode, File → Add Package Dependencies… and enter https://github.com/tweaklane/tweaklane-ios, or in Package.swift:
.package(url: "https://github.com/tweaklane/tweaklane-ios", from: "1.0.0")
Add the TweakLane product to your macOS target.
2. Register, render, edit
Follow the iOS quickstart from step 2: register your components, give
each screen a default document, create the engine and render each screen with TweakScreen. The
catalog manifest, layout documents and validation are identical, so a design a user makes on iOS
loads on macOS when both apps register the same component ids.
3. Connect your backend
User tokens work the same on every platform. See Connect your backend.