AFCoreUI for iOS
AFCoreUI for iOS is a Swift Package of themed SwiftUI components that lives next to the SDK at ui/afcore-ui-ios. It requires iOS 17+ and is not part of the published AFCore package yet: add it as a local package (Xcode → Add Package Dependencies… → Add Local…, pick ui/afcore-ui-ios) and import it next to AFCore.
import AFCore
import AFCoreUI
What's inside
- Theme --
AFCoreUITheme(colors, typography, spacing, motion, haptics) with the built-inAFCoreUITheme.advantaHealth, applied with.afCoreUITheme(_:). - Primitives --
AHCard,AHRing/AHRingTrio,AHBadge,AHBanner,AHEmptyState,AHHero,AHTrayNotification,AHSkeleton,AHHelpSheet. - Feature views --
WelcomeCarousel,PermissionsPrompt,ActivityCalendarView,ActivityDayDetailView,CheckInSheet,BarcodeScannerView,FacilityMapView,SpotItDeckView. - Commerce --
AHMerchantRow,AHMerchantMapView,AHGiftCardView,AHBalanceCard,AHAmountPicker,AHPrimaryButton,AHStickyFooterand related building blocks for rewards screens.
Theming
Apply the theme once at the root, or pass your own to rebrand:
@main
struct MyApp: App {
var body: some Scene {
WindowGroup {
RootView()
.afCoreUITheme(.advantaHealth)
}
}
}
Learn more
The iOS sample app uses these components with live AFCore data, and the package README lists every component. Complete integration guides are in AIDE Docs.