Installation
Swift Package Manager
In Xcode: File → Add Packages, then enter:Package.swift:
GatlioUI as a target dependency (and optionally Gatlio for direct client usage):
Quick start
Wrap the authenticated portion of your app inGatlioGate:
- Active —
YourApprenders normally - Warning — dismissable banner above content
- Lockout — full-screen overlay until card is updated
Parameters
Callbacks
Custom enforcement UI
Wrap your views inAnyView(...):
Testing
Force a state
forcedStatus is set. Remove before shipping.
Interactive sandbox
DEV badge appears in the bottom-right corner. Tap to open a sheet with state pills and a callback log. Remove before shipping to production.
UIKit / non-SwiftUI usage
Use theGatlio target directly with Combine:
client.stop() in deinit or viewDidDisappear.