Skip to main content
The Fiori SwiftUI SDK is distributed exclusively through Swift Package Manager. There is no CocoaPods or Carthage distribution.

Products

The Package.swift manifest exposes three products. Choose the one that fits your needs.
ProductContentsPlatforms
FioriSwiftUIUmbrella — includes FioriSwiftUICore, FioriCharts, and FioriThemeManageriOS, visionOS
FioriSwiftUICoreFiori UI components (ObjectItem, Card, SideBar, DataTable, …)iOS, visionOS
FioriChartsChart components (Line, Column, Donut, Bullet, …)iOS, visionOS
FioriThemeManagerSAP 72 fonts and Fiori color paletteiOS, visionOS, watchOS
Use 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

File > Add Package Dependencies…
https://github.com/SAP/cloud-sdk-ios-fiori

Xcode UI steps

1

Open the Add Package Dependencies dialog

In your Xcode project, choose File > Add Package Dependencies from the menu bar.
2

Enter the repository URL

Paste the following URL into the search field and press Return:
https://github.com/SAP/cloud-sdk-ios-fiori
3

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.
4

Select products

In the product list, check the products you want to link to your target — FioriSwiftUI, FioriSwiftUICore, FioriCharts, and/or FioriThemeManager — then click Add Package.

Import statements

After adding the package, import the modules you need at the top of each Swift file.
// Umbrella import — use when you need everything
import FioriSwiftUI

// Or import modules individually
import FioriSwiftUICore   // UI components
import FioriCharts        // chart components
import FioriThemeManager  // colors and fonts

Font registration

Font registration is required. If you skip this step, Fiori components render with the system font instead of the SAP 72 typeface.
Call Font.registerFioriFonts() once, early in your app’s lifecycle. The recommended location is application(_:didFinishLaunchingWithOptions:) in your AppDelegate:
import UIKit
import FioriThemeManager

@main
class AppDelegate: UIResponder, UIApplicationDelegate {
    func application(
        _ application: UIApplication,
        didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
    ) -> Bool {
        Font.registerFioriFonts()
        return true
    }
}
If you are using the SwiftUI App lifecycle without an AppDelegate, you can register fonts in your App initializer:
import SwiftUI
import FioriThemeManager

@main
struct MyApp: App {
    init() {
        Font.registerFioriFonts()
    }

    var body: some Scene {
        WindowGroup {
            ContentView()
        }
    }
}

Platform-specific notes

  • FioriSwiftUICore and FioriCharts are only available on iOS and visionOS. Linking them from a watchOS target will produce a build error.
  • FioriThemeManager supports iOS 17+, visionOS 2.0+, and watchOS 7+.
  • The FioriSwiftUI umbrella target conditionally includes FioriSwiftUICore only on iOS, macCatalyst, and visionOS, so it is safe to add as a dependency even in multi-platform packages.

Build docs developers (and LLMs) love