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 moreFUIDateRange
object denotes the start and end dates of a range.Declaration
-
This
FUIStatusBarStyleHelper
is 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. ThestatusBarStyle
ofFUIStatusBarStyleHelper
will be set by the SAPFiori UI components that need to have the specific style. Before iOS 13.4, applications could overrideUINavigationController
‘spreferredStatusBarStyle
property 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 moreUINavigationController
extention is not invoked. Instead, SAPFiori provides anFUINavgationController
that overrides thepreferredStatusBarStyle
property using the above code above. The application should then useFUINavigationController
in its main interface in order to have the status bar style match thestatusBarStyle
property 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 moreFUIDataTable
Declaration
Swift
public struct FUITableDateItem : FUITableItem, FUIDataTableTextTheme, FUIDataTableItemConvertion, Equatable
-
Duration item for
See moreFUIDataTable
Declaration
Swift
public struct FUITableDurationItem : FUITableItem, FUIDataTableTextTheme, FUIDataTableItemConvertion, Equatable
-
List item for
See moreFUIDataTable
Declaration
Swift
public struct FUITableListItem : FUITableItem, FUIDataTableTextTheme, FUIDataTableItemConvertion, Equatable
-
Time item for
See moreFUIDataTable
Declaration
Swift
public struct FUITableTimeItem : FUITableItem, FUIDataTableTextTheme, FUIDataTableItemConvertion, Equatable
-
A struct for stylings in the
See moreFUIDimensionSelector
Declaration
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 : OptionSet
extension FUISwitchControlState: Hashable
extension FUISwitchControlState: FUIControlStateConvertable
-
Undocumented
See moreDeclaration
Swift
public struct FUIPrivacyNoticeItem
extension 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 moreStepProgressIndicator
Declaration
Swift
public struct FUIStepProgressIndicatorState : OptionSet
extension FUIStepProgressIndicatorState: Hashable
-
Attribute for
See moreTimeline
andTimelinePreview
.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 FUIHexColor : Hashable
extension FUIHexColor: Equatable
extension FUIHexColor: CustomStringConvertible
-
A struct for providing color palette.
See moreDeclaration