A minimal SwiftUI app demonstrating the FeatBit Swift SDK: streaming sync, a FeatBit
ObservableObject driving live UI, and FBLifecycleConnector for background-pause/foreground-resync.
The app sources live in Sources/ (FeatBitExampleApp.swift, ContentView.swift). To keep the
repository toolchain-agnostic, the Xcode project is not committed — create one in a few steps.
- In Xcode: File ▸ New ▸ Project ▸ App (SwiftUI lifecycle). Name it
FeatBitExampleApp, save it here (Examples/FeatBitExampleApp/). - Delete the generated
App/ContentViewand add the files fromSources/to the target. - File ▸ Add Package Dependencies… ▸ Add Local… and select the repository root, adding the
FeatBitClient,FeatBitSwiftUI, andFeatBitLifecycleproducts to the app target. - Set your environment
secretand evaluation-server URLs inFeatBitExampleApp.swift. - Run on a simulator, then toggle the
game-runnerflag in FeatBit and watch the UI update live.
(Or generate the project with XcodeGen / Tuist for a reproducible setup.)