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 4.0.0
SwiftUI implementation of the SAP Fiori for iOS Design Language.
⭐️ 103
🕓 1 week ago
iOS watchOS
.package(url: "https://github.com/SAP/cloud-sdk-ios-fiori.git", from: "4.0.0")

Logo
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

FioriThemeManager platform support: iOS, visionOS, 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

FioriSwiftUICore platform support: iOS and visionOS

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.

FioriSwiftUICore
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:
Signature Capture :white_check_mark:
DurationPicker :white_check_mark:
StepProgressIndicator :white_check_mark:
Text Input :white_check_mark:
Validation View :white_check_mark:
Card :white_check_mark:
Toolbar :white_check_mark:
Search :white_check_mark:
Tab Bar :white_check_mark:
Navigation Bar :white_check_mark:
KeyValueItem :x:
TimelineItem :x:
TimelinePreviewItem :x:
ChartFloorplan :x:
ProfileHeader :x:
CollectionItem :x:
BarcodeScanner :x:
PasscodeView :x:
MultiUserPasscodeView :x:
TouchIDErrorView :x:

FioriCharts

FioriCharts platform support: iOS and visionOS

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

Requirements

  • iOS 15 or higher
  • Xcode 14 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.

Configuration

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

Limitations

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.

Contributing

If you want to contribute, please check the Contribution Guidelines

To-Do (upcoming changes)

See Limitations.

Examples

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

Demo app with examples

GitHub

link
Stars: 103
Last commit: Yesterday
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

4.0.0
1 week ago

4.0.0 (2024-04-11)

⚠ BREAKING CHANGES

  • Model-based initializer is removed from ObjectItem. In the future, all components will only have two types of initializers: ViewBuilder-based and type-based initializers.
  • The type of action parameter in ObjectItem's type-based initializer is changed from Action to FioriButton.

Features

  • [HCPSDKFIORIUIKIT-2504]Color updates for Dimension Selectors (#654) (1da6a93)
  • [JIRA: HCPSDKFIORIUIKIT-2444] Update to include more icons (fa72d55)
  • [JIRA: HCPSDKFIORIUIKIT-2444] Update to include more icons (db508b6)
  • [JIRA: HCPSDKFIORIUIKIT-2444] Update to include more icons (547a9cc)
  • [JIRA: HCPSDKFIORIUIKIT-2444] Update to include more icons (8b5c87c)
  • [JIRA: HCPSDKFIORIUIKIT-2444] Update to include more icons (18c33a4)
  • [JIRA: HCPSDKFIORIUIKIT-2488] SwiftUI InformationView (ValidationView) (#636) (96b6220)
  • [JIRA: HCPSDKFIORIUIKIT-2497] [New Color System] Search Bar (#657) (27a1aef)
  • [JIRA: HCPSDKFIORIUIKIT-2508] [New Color System] Sort & Filter Form (#663) (9a6b56e)
  • 🎸 [HCPSDKFIORIUIKIT-2452] Add vertical layout style modifier to Illustrated Message (#655) (4b268b6)
  • 🎸 [HCPSDKFIORIUIKIT-2452] Illustrated Message (#641) (09ad197)
  • 🎸 [HCPSDKFIORIUIKIT-2452] Make image size selectable from a list of options (#661) (2ff2d40)
  • 🎸 [HCPSDKFIORIUIKIT-2481] new mobile card (#648) (6bbb9d4)
  • 🎸 [HCPSDKFIORIUIKIT-2481] New Mobile Card (#665) (df4a0b9)
  • 🎸 [HCPSDKFIORIUIKIT-2503] [New Color System] Contact Item (#675) (e4af6df)
  • 🎸 [jira: FIORIUIKIT-2409] [New Color System] Data Table (#653) (9300a74)
  • 🎸 [JIRA: HCPSDKFIORIUIKIT-2224] New FioriButtonStyle support (#603) (4890872)
  • 🎸 [JIRA: HCPSDKFIORIUIKIT-2444] Update to include more icons (a2ce7c5)
  • 🎸 [JIRA: HCPSDKFIORIUIKIT-2444] Update to include more icons (1198da1)
  • 🎸 [JIRA: HCPSDKFIORIUIKIT-2447] navigation bar migration (#615) (26ae03e)
  • 🎸 [JIRA: HCPSDKFIORIUIKIT-2453]DataTable readonly support (#626) (05b5a86)
  • 🎸 [JIRA: HCPSDKFIORIUIKIT-2458] Linear Progress Indicator (#668) (32bcec9)
  • 🎸 [JIRA: HCPSDKFIORIUIKIT-2459] Tab Bar (#621) (ba03a23)
  • 🎸 [JIRA: HCPSDKFIORIUIKIT-2480] masonry layout (#676) (09df111)
  • 🎸 [JIRA: HCPSDKFIORIUIKIT-2559] list style configurable (#674) (376fdb1)
  • 🎸 [JIRA:0] TextInputInfoView for TextInput (#645) (674ccd9)
  • 🎸 [JIRA:HCPSDKFIORIUIKIT-2458]Linear Progress Indicator and TextInputInfoView (#639) (a6c77ea)
  • 🎸 [JIRA:HCPSDKFIORIUIKIT-2460] SwiftUI NoteFormView (#656) (90e8de7)
  • 🎸 [JIRA:HCPSDKFIORIUIKIT-2540] Filter Feedback (#666) (a214ead)
  • 🎸 [JRIA:HCPSDKFIORIUIKIT-2460] TextInput form cells (#669) (20e62c7)
  • 🎸 HCPSDKFIORIUIKIT-2505 Update PageIndicator Color (#650) (23a99f1)
  • 🎸 jira 2286 sort & filter (#606) (6b3eef6)
  • 🎸 jira HCPSDKFIORIUIKIT-2297, add chrome and chrome2 colors (#640) (ed61fc5)
  • 🎸 styleable helper text and more action in toolbar (#658) (8a55277)
  • 🎸 support 72 semibold style (#652) (3cbb1f2)
  • 🎸 toolbar migration (#634) (d859007)
  • jira HCPSDKFIORIUIKIT-2461 SwiftUI Migration: Search (#623) (e1fe82c), closes #622
  • merge visionOS branch into main (#622) (d7f3978)

Bug Fixes

  • 🐛 [bcp: 0] fix crashes on VisionOS caused by strokeBorder (#601) (44de9bd)
  • 🐛 [bcp: 0] fix DataTable's sizeThatFits() for dynamic type (12759ee)
  • 🐛 [bcp: 0] fix ObjectItem bug in a widget view (4c3e275)
  • 🐛 [bcp: 0] remove background in ObjectHeader (#614) (f1763fc)
  • 🐛 [bcp: 2370136916] fix width mode for DimensionSelector (#610) (088aef8)
  • 🐛 [BCP:0] Adding back sr-Latn-RS.lpoj folder (#673) (046c2e7)
  • 🐛 [BCP:0] try to fix project folder name (#672) (eb66672)
  • 🐛 [BCP:2370082757] Fix SignatureCaptureView VO issues (#602) (6d09d0f)
  • 🐛 [IOSSDKBUG-67]DataTable blinks redline when toggling mod (#643) (41309df)
  • 🐛 adding missing constants to allCases (#627) (41e3f8d)
  • 🐛 fix a selectin ui bug and update doc in DataTable (#629) (19a945f)
  • 🐛 simultaneous gesture is not triggered in voice over (#599) (24ca365)
  • adding missing macro back (#628) (27e9466)
  • re-arrange color definition sequence, asked by designer (#635) (772e488)
  • update icon image name to fiori.text.colour (#616) (67b64dd)

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