Skip to main content

Installation

Swift Package Manager

In Xcode: File → Add Packages, then enter:
Or in Package.swift:
Add GatlioUI as a target dependency (and optionally Gatlio for direct client usage):

Quick start

Wrap the authenticated portion of your app in GatlioGate:
  • ActiveYourApp renders normally
  • Warning — dismissable banner above content
  • Lockout — full-screen overlay until card is updated

Parameters

Callbacks

Callbacks fire on status transitions only.

Custom enforcement UI

Wrap your views in AnyView(...):

Testing

Force a state

No network calls are made when forcedStatus is set. Remove before shipping.

Interactive sandbox

A 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 the Gatlio target directly with Combine:
Call client.stop() in deinit or viewDidDisappear.