UI Components
AFCoreUI is an optional design system that ships alongside the AFCore SDK. It gives you themed primitives and feature views so you can skip the design lift and integrate the SDK in days instead of weeks.
| Platform | Module | Status |
|---|---|---|
| iOS | ui/afcore-ui-ios — AFCoreUI Swift Package | Production-ready; ships as a sibling product alongside AFCore SPM |
| Android | ui/afcore-ui-android — AFCoreUI Compose library | Theme scaffold; primitives & feature views landing per the iOS surface |
Both surfaces are opt-in. AFCore the SDK does not depend on either — you can ship a fully custom UI and ignore AFCoreUI entirely.
Why use AFCoreUI
- Branded out of the box —
AFCoreUITheme.advantaHealth(light + dark) is the AdvantaHealth palette; overridepaletteto rebrand - AFCore-aware — components like
ActivityCalendarView,BarcodeScannerView, andSpotItDeckVieware designed against the AFCore data shapes - Symmetric across platforms — the iOS and Android surfaces converge on the same component names and parameters, so your iOS and Android teams can read each other's UI
When to skip it
- You already have a design system
- You want a fully custom look that doesn't share AFCoreUI's typography / spacing primitives
- You only need a couple of components — copy what you need from the source, no library dep required
Per-platform docs
- SwiftUI (AFCoreUI for iOS) — full component list, theming, sample usage
- Compose (AFCoreUI for Android) — current scaffold, roadmap