ObjectItem component in under five minutes.
Add the package
In Xcode, choose File > Add Package Dependencies and enter the repository URL:Select the FioriSwiftUI product to import all three modules at once, or choose individual products (
FioriSwiftUICore, FioriCharts, or FioriThemeManager) if you want to limit your binary size.Register Fiori fonts
The SAP 72 typeface must be registered at launch. Open your
AppDelegate.swift and call Font.registerFioriFonts() inside application(_:didFinishLaunchingWithOptions:).Skipping this step means Fiori components will render with the system font instead of SAP 72. The fonts support Dynamic Type automatically — no extra configuration is required.
Display your first component
ObjectItem is one of the most commonly used Fiori components. It supports two initialization styles: a ViewBuilder initializer for full layout control, and a type-based initializer for straightforward data binding.View. The type-based initializer binds directly to AttributedString, Image, and TextOrIcon values and applies default Fiori styles automatically.Next steps
- Read the Installation page for details on selecting individual products and configuring Package.swift.
- Explore the component overview to see what else is available in
FioriSwiftUICore. - See the theme manager overview to learn about font APIs, color styles, and palette versioning.