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 FUIDateRange object denotes the start and end dates of a range.

    See more

    Declaration

    Swift

    public struct FUIDateRange
    extension FUIDateRange: FUIDateSelection
  • 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. The statusBarStyle of FUIStatusBarStyleHelper will be set by the SAPFiori UI components that need to have the specific style. Before iOS 13.4, applications could override UINavigationController‘s preferredStatusBarStyle 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 UINavigationController extention is not invoked. Instead, SAPFiori provides an FUINavgationController that overrides the preferredStatusBarStyle property using the above code above. The application should then use FUINavigationController in its main interface in order to have the status bar style match the statusBarStyle property in FUIStatusBarStyleHelper. This solution works for both the iOS 13 before and after 13.4.

    See more

    Declaration

    Swift

    @available(*, deprecated, message: "No longer supported.")
    public struct FUIStatusBarStyleHelper
  • FUIDataTable change for inline editing

    See more

    Declaration

    Swift

    public struct FUIDataTableChange : CustomStringConvertible
  • Date item for FUIDataTable

    See more

    Declaration

    Swift

    public struct FUITableDateItem : FUITableItem, FUIDataTableTextTheme, FUIDataTableItemConvertion, Equatable
  • Duration item for FUIDataTable

    See more

    Declaration

    Swift

    public struct FUITableDurationItem : FUITableItem, FUIDataTableTextTheme, FUIDataTableItemConvertion, Equatable
  • List item for FUIDataTable

    See more

    Declaration

    Swift

    public struct FUITableListItem : FUITableItem, FUIDataTableTextTheme, FUIDataTableItemConvertion, Equatable
  • Time item for FUIDataTable

    See more

    Declaration

    Swift

    public struct FUITableTimeItem : FUITableItem, FUIDataTableTextTheme, FUIDataTableItemConvertion, Equatable
  • A struct for stylings in the FUIDimensionSelector

    See more

    Declaration

    Swift

    public struct FUISegmentAttributes
  • Available collection cell size types.

    Available:

    • .small: maximum width of 110 points
    • .standard: maximum width of 120 points
    See more

    Declaration

    Swift

    public struct FUICollectionCellSize : Equatable
  • Type-erased floorplan.

    See more

    Declaration

    Swift

    public struct AnyTableBasedFloorplan
  • Type-erased Section.

    See more

    Declaration

    Swift

    public struct AnySection : Hashable
  • Data model for FUIOrderPickerFormCell

    Usage Example:

    A 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))
    
    See more

    Declaration

    Swift

    public struct FUISortCriterion : Equatable, Identifiable, CustomStringConvertible
  • A special control state for FUISwitchFormCell. Usually used in following four combinations: [.disabled, .unselected], [.disabled, .selected], [.enabled, .unselected], [.enabled, .selected].

    See more

    Declaration

    Swift

    public struct FUISwitchControlState : OptionSet
    extension FUISwitchControlState: Hashable
    extension FUISwitchControlState: FUIControlStateConvertable
  • Undocumented

    See more

    Declaration

    Swift

    public struct FUIPrivacyNoticeItem
    extension FUIPrivacyNoticeItem: Equatable
  • The attributes for the button in SegmentedControl.

    See more

    Declaration

    Swift

    public struct FUISegmentedControlButtonAttributes
  • An option set for step state that used for default StepProgressIndicator

    See more

    Declaration

    Swift

    public struct FUIStepProgressIndicatorState : OptionSet
    extension FUIStepProgressIndicatorState: Hashable
  • Attribute for Timeline and TimelinePreview.

    See more

    Declaration

    Swift

    public struct FUITimeline
  • A struct for representing the color in hexadecimal.

    See more

    Declaration

    Swift

    @available(*, deprecated, renamed: "FUIHexColor", message: "Please use `FUIHexColor` instead")
    public struct FUIPaletteHexColor
  • Undocumented

    See more

    Declaration

    Swift

    public struct SkeletonGradient
  • Type that acts as a generic extension point for all SkeletonViewExtended types.

    See more

    Declaration

    Swift

    public struct SkeletonViewExtension<ExtendedType>
  • Undocumented

    Declaration

    Swift

    public struct SkeletonTreeNode<Base>
  • Undocumented

    See more

    Declaration

    Swift

    public struct FUIHexColor : Hashable
    extension FUIHexColor: Equatable
    extension FUIHexColor: CustomStringConvertible
  • A struct for providing color palette.

    See more

    Declaration

    Swift

    public struct FUIPalette : _PaletteProvider
    extension FUIPalette: Equatable