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
-
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 -
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 -
The attributes for the button in
See moreSegmentedControl.Declaration
Swift
public struct FUISegmentedControlButtonAttributes -
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 : Hashableextension FUIHexColor: Equatableextension FUIHexColor: CustomStringConvertible -
A struct for providing color palette.
See moreDeclaration