Other Structures
The following structures are available globally.
-
The state of the calendar item.
For SAPFiori internal use only.
Declaration
Swift
public struct FUICalendarItemState -
The
See moreFUIDateRangeobject denotes the start and end dates of a range.Declaration
-
Single Banner Message Model
See moreDeclaration
Swift
public struct FUIBannerMessageItemModel : Identifiable -
List Model for Banner Message List
See moreDeclaration
Swift
public struct FUIBannerMessageListModel : Identifiable, Equatable -
This
FUIStatusBarStyleHelperis to help the application developer set the status bar style on iOS devices. This is needed since iOS does not provide an API to directly manipulate the status bar style and some of the SAPFiori UI components need to have specific status bar style. ThestatusBarStyleofFUIStatusBarStyleHelperwill be set by the SAPFiori UI components that need to have the specific style. Before iOS 13.4, applications could overrideUINavigationController‘spreferredStatusBarStyleproperty similar to the code below to apply the status bar style to the application.extension UINavigationController { open override var preferredStatusBarStyle: UIStatusBarStyle { if let statusBarStyle = FUIStatusBarStyleHelper.statusBarStyle { return statusBarStyle } return navigationBar.barStyle == .default ? .lightContent : .darkContent } }However, beginning with iOS 13.4 the above code in
See moreUINavigationControllerextention is not invoked. Instead, SAPFiori provides anFUINavgationControllerthat overrides thepreferredStatusBarStyleproperty using the above code above. The application should then useFUINavigationControllerin its main interface in order to have the status bar style match thestatusBarStyleproperty inFUIStatusBarStyleHelper. This solution works for both the iOS 13 before and after 13.4.Declaration
Swift
@available(*, deprecated, message: "No longer supported.") public struct FUIStatusBarStyleHelper -
FUIDataTable change for inline editing
See moreDeclaration
Swift
public struct FUIDataTableChange : CustomStringConvertible -
Date item for
See moreFUIDataTableDeclaration
Swift
public struct FUITableDateItem : FUITableItem, FUIDataTableTextTheme, FUIDataTableItemConvertion, Equatable -
Duration item for
See moreFUIDataTableDeclaration
Swift
public struct FUITableDurationItem : FUITableItem, FUIDataTableTextTheme, FUIDataTableItemConvertion, Equatable -
List item for
See moreFUIDataTableDeclaration
Swift
public struct FUITableListItem : FUITableItem, FUIDataTableTextTheme, FUIDataTableItemConvertion, Equatable -
Time item for
See moreFUIDataTableDeclaration
Swift
public struct FUITableTimeItem : FUITableItem, FUIDataTableTextTheme, FUIDataTableItemConvertion, Equatable -
A struct for stylings in the
See moreFUIDimensionSelectorDeclaration
Swift
public struct FUISegmentAttributes -
Available collection cell size types.
Available:
.small: maximum width of 110 points.standard: maximum width of 120 points
Declaration
Swift
public struct FUICollectionCellSize : Equatable -
Type-erased floorplan.
See moreDeclaration
Swift
public struct AnyTableBasedFloorplan -
Type-erased Section.
See moreDeclaration
Swift
public struct AnySection : Hashable -
Data model for FUIOrderPickerFormCell
Usage Example:
See moreA typical sort criterion with default style: FUISortCriterion(criterion: FUIMultiLineText("Name"), isSelected: false, isAscending: true, ascendingText: FUIMultiLineText("Ascending"), descendingText: FUIMultiLineText("Descending")) A sort criterion with customized style: FUISortCriterion(criterion: FUIMultiLineText("Priority", font: UIFont.preferredFioriFont(forTextStyle: .body), textColor: UIColor.red), isSelected: true, isAscending: false, ascendingText: FUIMultiLineText("Lowest first", font: UIFont.preferredFioriFont(forTextStyle: .body), textColor: UIColor.purple), descendingText: FUIMultiLineText("Highest first", font: UIFont.preferredFioriFont(forTextStyle: .headline), textColor: UIColor.blue))Declaration
Swift
public struct FUISortCriterion : Equatable, Identifiable, CustomStringConvertible -
A special control state for
See moreFUISwitchFormCell. Usually used in following four combinations: [.disabled, .unselected], [.disabled, .selected], [.enabled, .unselected], [.enabled, .selected].Declaration
Swift
public struct FUISwitchControlState : OptionSetextension FUISwitchControlState: Hashableextension FUISwitchControlState: FUIControlStateConvertable -
FUIContentUnavailableConfiguration: conforms toUIContentConfigurationprotocol. InstantiatesFUIIllustratedMessageso that it can be displayed within other views.Usage 1: UIViewController.contentUnavailableConfiguration
var contentUnavailableConfig = FUIContentUnavailableConfiguration() contentUnavailableConfig.title.text = "Custom placeholder title" contentUnavailableConfig.body.text = "This is a text to describe what you can do when there is no data" contentUnavailableConfig.detailImageView.image = UIImage(named: "errorMessage") let actionButton = FUIButton() // ... configure button style // actionButton.setContentHuggingPriority(.defaultHigh, for: .horizontal) // actionButton.setContentHuggingPriority(.defaultHigh, for: .vertical) contentUnavailableConfig.primaryAction = actionButton self.contentUnavailableConfiguration = contentUnavailableConfigUsage 2: UIContentConfiguration API, makeContentView()
See morelet vc = UIViewController() var contentUnavailableConfig = FUIContentUnavailableConfiguration() contentUnavailableConfig.title.text = "Custom placeholder title" contentUnavailableConfig.body.text = "This is a text to describe what you can do when there is no data" contentUnavailableConfig.detailImageView.image = UIImage(named: "errorMessage") let actionButton = FUIButton() // ... configure button style // actionButton.setContentHuggingPriority(.defaultHigh, for: .horizontal) // actionButton.setContentHuggingPriority(.defaultHigh, for: .vertical) contentUnavailableConfig.primaryAction = actionButton vc.view = contentUnavailableConfig.makeContentView() vc.view.backgroundColor = .preferredFioriColor(forStyle: .primaryBackground)Declaration
Swift
public struct FUIContentUnavailableConfiguration : UIContentConfiguration -
Undocumented
See moreDeclaration
Swift
public struct FUIPrivacyNoticeItemextension FUIPrivacyNoticeItem: Equatable -
The attributes for the button in
See moreSegmentedControl.Declaration
Swift
public struct FUISegmentedControlButtonAttributes -
An option set for step state that used for default
See moreStepProgressIndicatorDeclaration
Swift
public struct FUIStepProgressIndicatorState : OptionSetextension FUIStepProgressIndicatorState: Hashable -
Attribute for
See moreTimelineandTimelinePreview.Declaration
Swift
public struct FUITimeline -
A struct for representing the color in hexadecimal.
See moreDeclaration
Swift
@available(*, deprecated, renamed: "FUIHexColor", message: "Please use `FUIHexColor` instead") public struct FUIPaletteHexColor -
Undocumented
See moreDeclaration
Swift
public struct SkeletonGradient -
Type that acts as a generic extension point for all
See moreSkeletonViewExtendedtypes.Declaration
Swift
public struct SkeletonViewExtension<ExtendedType> -
Undocumented
Declaration
Swift
public struct SkeletonTreeNode<Base> -
Undocumented
See moreDeclaration
Swift
public struct FUIHexColor : Hashableextension FUIHexColor: Equatableextension FUIHexColor: CustomStringConvertible -
A struct for providing color palette.
See moreDeclaration