Swiftpack.co - SAP/cloud-sdk-ios-fiori as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by SAP.
SAP/cloud-sdk-ios-fiori 3.1.0
SwiftUI implementation of the SAP Fiori for iOS Design Language.
⭐️ 93
🕓 2 weeks ago
iOS watchOS
.package(url: "https://github.com/SAP/cloud-sdk-ios-fiori.git", from: "3.1.0")

SwiftUI implementation of the SAP Fiori for iOS Design Language

Installation   |   Examples   |   API Documentation   |   Changelog

Build and Test Status Check Maintainability Rating CII Best Practices Conventional Commits Commitizen friendly REUSE status

This project is the SwiftUI implementation of the SAP Fiori for iOS Design Language, and is meant to augment and in some cases replace the UIKit-based implementation contained in the SAPFiori framework of the SAP BTP SDK for iOS.

alt text

This project currently contains three modules: FioriThemeManager, FioriSwiftUICore, and FioriCharts.


FioriThemeManager platform support: iOS and watchOS

This module provides a color palette and a new font family SAP 72 that conform to Fiori Design Language. It is adopted by all the Fiori components in both this package and SAPFiori.

All Fiori Colors are dynamic colors, which means they will adjust based on iOS Appearance settings (Light/Dark). Accessing Fiori Color using Color.preferredFioriColor(forStyle:).

72 is a SAP patent typeface that delivers great reading experience to our users. You can get these fonts using Font.fiori(forTextStyle:) or Font.fioriCondensed(forTextStyle:). Note that these fonts support Dynamic Type out of the box. If you want the fonts with fixed size, use Font.fiori(fixedSize:) or Font.fioriCondensed(fixedSize:) instead.

Custom fonts need to be loaded and registered during App's runtime. Make sure you call Font.registerFioriFonts() inside application(_:didFinishLaunchingWithOptions:) of your AppDelegate.


FioriSwiftUICore platform support: iOS only

This module contains SwiftUI implementation for those UIKit-based components existing in SAPFiori. It provides you with an easy way to migrate your UIKit project to SwiftUI while delivering the same experience as before.

We plan to progressively bring more Fiori UI components into this module in the future releases. Check the table below for the components that are currectly available and those in the roadmap.

Refer to this document for different ways of initializing the component.

ObjectItem :white_check_mark:
ObjectHeader :white_check_mark:
KPIItem :white_check_mark:
FioriButton :white_check_mark:
ListPickerItem :white_check_mark:
DimensionSelector :white_check_mark:
SideBar :white_check_mark:
DataTable :white_check_mark:
WelcomeScreen :white_check_mark:
ActivationScreen :white_check_mark:
InfoView :white_check_mark:
User Consent Form :white_check_mark:
KPIProgressItem :white_check_mark:
EULAView :white_check_mark:
ContactItem :white_check_mark:
KPIHeader :white_check_mark:
KeyValueItem :x:
TimelineItem :x:
TimelinePreviewItem :x:
ChartFloorplan :x:
ProfileHeader :x:
CollectionItem :x:
BarcodeScanner :x:
PasscodeView :x:
MultiUserPasscodeView :x:
TouchIDErrorView :x:


FioriCharts platform support: iOS only

The FioriCharts module replaces the RoambiChartKit charting library which was already embedded in SAPFiori. Migrating to SwiftUI gives the ability to easily add new chart components (donut, bullet, stocks, etc.) while modernizing the existing supported charts with pinch-to-zoom, pan, and new design features.

SAPFiori 4.0.x, 5.0.x FioriCharts
Area :white_check_mark: :white_check_mark:
Line :white_check_mark: :white_check_mark:
Column :white_check_mark: :white_check_mark:
Stacked Column :white_check_mark: :white_check_mark:
Bar :white_check_mark: :white_check_mark:
Stacked Bar :x: :white_check_mark:
Bubble :white_check_mark: :white_check_mark:
Scatter :white_check_mark: :white_check_mark:
Waterfall :white_check_mark: :white_check_mark:
Combo :white_check_mark: :white_check_mark:
Donut :x: :white_check_mark:
Bullet :x: :white_check_mark:
Stacked Bullet :x: :soon:
Harvey Ball :x: :white_check_mark:
Radial :x: :white_check_mark:
Stocks (line) :x: :white_check_mark:

The API is designed for backwards compatibility to the existing SAPFiori charting APIs, but is optimized for SwiftUI.

API Reference


  • iOS 15 or higher
  • Xcode 13 or higher
  • Swift Package Manager

Download and Installation

The package is intended for consumption via Swift Package Manager.

  • To add to your application target, navigate to the File > Swift Packages > Add Package Dependency... tab, then add the repository URL.
  • To add to your framework target, add the repository URL to your Package.swift manifest.

In both cases, xcodebuild tooling will manage cloning and updating the repository to your app or framework project.


Three products are exposed by the Package.swift manifest.

FioriSwiftUI as umbrella product will contain everything the package has to offer in the future.

If you are concerned about bundle size you can use either one of the individual products, e.g. FioriCharts or FioriThemeManager


Several functional limitations exist at present, which are planned for resolution in future releases. Please check the Issues tab for an up-to-date view of the backlog and issue status.

Key gaps which are present at time of open-source project launch:

  • FioriCharts requires design specifications to improve UI

Known Issues

See Limitations.

How to obtain support

Support for the modules is provided through this open-source repository. Please file Github Issues for any issues experienced, or questions.

When SAPFiori integrates FioriCharts productively, customers should continue to report issues through OSS for SLA tracking. However, developers may also report chart-related issues directly into the Github Issues; SAP will mirror FioriCharts-related issues reported through OSS into Github Issues.


If you want to contribute, please check the Contribution Guidelines

To-Do (upcoming changes)

See Limitations.


Functionality can be further explored with a demo app which is already part of this package (Apps/Examples/Examples.xcodeproj).

Demo app with examples


Stars: 93
Last commit: 2 hours ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

2 weeks ago

3.1.0 (2023-03-04)


  • 🎸 [BCP-2270180064] add divider color&width for DataTable (#493) (970bcd6)
  • 🎸 [JIRA-1968] DataTable inline editing support (91110a8)
  • 🎸 [JIRA-2222] Duration Picker Support (#484) (654a1b9)
  • 🎸 [JIRA: 2219] List picker with single selection (#491) (ebac344)
  • 🎸 [JIRA: HCPSDKFIORIUIKIT-1904] Empty state view. (#489) (3b9c2b2)
  • 🎸 [JIRA: HCPSDKFIORIUIKIT-1938] Kpi header (#504) (63b230c)
  • 🎸 Searchable list picker (f6b8ae4)
  • 🎸 avatars and footnote icons for object item (#521) (64bc747)
  • 🎸 watchOS color palette implementation (#527) (96edd83)
  • 🎸 [JIRA: HCPSDKFIORIUIKIT-2241] Horizon theme support.

Bug Fixes

  • 🐛 [BCP: 2270182630] fix tap on white space in DataTable (#485) (0084039)
  • 🐛 [HCPSDKFIORIUIKIT-2259]ListPickerItem fiori theme update (#522) (4c48ccd)
  • 🐛 [JIRA-1968] change a color for DataTable inline editing (#516) (cb0cd7a)
  • 🐛 [JIRA-1968] fix DataListItem display issue in edit mode (307b98f)
  • 🐛 [JIRA-1968] fix some DataTable issues (#515) (052b3f5)
  • 🐛 [JIRA-1968] improve DataTable inline editing on iOS 15 (fdfbc64)
  • 🐛 [JIRA-2241] fix two swiftlint warnings (9b3dc6c)
  • 🐛 [BCP:2380025761] Color Hex Value Typos in PaletteV7 (#517) (b473b88)
  • 🐛 Custom colors were not updated when appearance changed (#482) (60689c9), closes #481
  • 🐛 duration picker layout for rtl (#519) (21fb96a)
  • 🐛 keep the search bar beneath navigation bar title (#528) (57f7405)
  • 🐛 searchable list selection handler (a77153d)
  • 🐛 swift version check for serchable modifier (adc2d75)

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics