Products
ThePackage.swift manifest exposes three products. Choose the one that fits your needs.
| Product | Contents | Platforms |
|---|---|---|
FioriSwiftUI | Umbrella — includes FioriSwiftUICore, FioriCharts, and FioriThemeManager | iOS, visionOS |
FioriSwiftUICore | Fiori UI components (ObjectItem, Card, SideBar, DataTable, …) | iOS, visionOS |
FioriCharts | Chart components (Line, Column, Donut, Bullet, …) | iOS, visionOS |
FioriThemeManager | SAP 72 fonts and Fiori color palette | iOS, visionOS, watchOS |
FioriSwiftUI if your app needs components and charts and you are not concerned about binary size.
Use individual products when you only need a subset — for example, a watchOS extension that only needs the color palette should depend on FioriThemeManager alone.
Add the package
Xcode UI steps
Open the Add Package Dependencies dialog
In your Xcode project, choose File > Add Package Dependencies from the menu bar.
Choose a version rule
Select Up to Next Major Version and enter the minimum version you want. Xcode will automatically fetch updates within that major version.
Import statements
After adding the package, import the modules you need at the top of each Swift file.Font registration
Font registration is required. If you skip this step, Fiori components render with the system font instead of the SAP 72 typeface.
Font.registerFioriFonts() once, early in your app’s lifecycle. The recommended location is application(_:didFinishLaunchingWithOptions:) in your AppDelegate:
App lifecycle without an AppDelegate, you can register fonts in your App initializer:
Platform-specific notes
FioriSwiftUICoreandFioriChartsare only available on iOS and visionOS. Linking them from a watchOS target will produce a build error.FioriThemeManagersupports iOS 17+, visionOS 2.0+, and watchOS 7+.- The
FioriSwiftUIumbrella target conditionally includesFioriSwiftUICoreonly on iOS, macCatalyst, and visionOS, so it is safe to add as a dependency even in multi-platform packages.