Run the iOS Sample
The iOS sample is a SwiftUI app that uses AFCore and AFCoreUI for SwiftUI the way a production app would.
git clone https://github.com/AdvantaHealth/AFCore.git
cd AFCore
./gradlew :core:assembleAFCoreXCFramework # builds the framework the sample links
open sample/ios/iosApp.xcodeproj
In Xcode, select the iosApp (iOS) scheme, pick an iPhone simulator (iOS 17+) or a device, and run.
Signing in
On first launch the app starts on QA by itself, with no keys to enter, and offers:
- Sign in -- username and password, with a Bismuth / Horizon realm selector.
- Sign in with External ID -- asks for your organization's Client ID and Client Secret from AIDE → API Keys at that step.
- Inject tokens (advanced) -- a token pair issued by your backend.
Change under the sign-in methods points the app at another base URL or realm. Sign out keeps the environment and clears everything that belonged to the member.
What's wired up
| Tab | Demonstrates |
|---|---|
| Home | Session state, banners from content(), programs and entitlements |
| Activity | The activity calendar with daily detail, status badges and pending (offline) visits |
| Check In | Scan / map / manual check-in, place search, favorites, nominations and problem reports |
| Explore | Menu tiles for the member's programs: SmartWalking, Mental Fitness, MyCarePath and ActivePerks |
| Profile | Profile, favorites and visit detection, payments, settings, push notifications and sign-out |
To run without a QA backend, use local mode.
Learn more
See the API Reference. Complete integration guides are in AIDE Docs.