FUIPaletteVersion

public enum FUIPaletteVersion : Int
extension FUIPaletteVersion: CaseIterable

An enum for different version of FUIPalette.

  • First snapshotted palette, from SAP Fiori SDK version 3.0 SP01

    Declaration

    Swift

    case v3_x
  • Snapshot of palette at SAP Fiori SDK version 3.0 SP02.

    Important

    Referred to in SAP Fiori Design Guidelines as ‘Fiori 3’ styling.

    Declaration

    Swift

    case v3_2
  • v4

    Snapshot of palette at SAP Fiori SDK version 5.0.

    Important

    Referred to in SAP Fiori Design Guidelines as ‘Fiori 5’ styling. Introduced dark mode support.

    Declaration

    Swift

    case v4
  • v5

    Snapshot of palette at SAP Fiori SDK version 6.0.

    Important

    Referred to in SAP Fiori Design Guidelines as ‘Fiori 6’ styling. Introduced elevated and contrast colors support.

    Declaration

    Swift

    case v5
  • v6

    Snapshot of palette at SAP Fiori SDK version 7.0.

    Important

    Referred to in SAP Fiori Design Guidelines as ‘Fiori Next’ styling.

    Declaration

    Swift

    case v6
  • v7

    Snapshot of palette at SAP Fiori SDK version 8.0.

    Important

    Referred to in SAP Fiori Design Guidelines as ‘Fiori Next’ styling.

    Declaration

    Swift

    case v7
  • FUIPalette version which should be adopted by developer, if creating a custom palette from scratch.

    Note

    Creating a custom palette from scratch is very uncommon and not generally recommended: it is more typical and convenient to override specific colors of the current system-provided palette, using the ThemeManager.shared.setColor(...) or ThemeManager.shared.setHexColor(...) APIs.

    Declaration

    Swift

    public static let latest: FUIPaletteVersion
  • FUIPalette version which previous being adopted by developer, if exists.

    Declaration

    Swift

    public func previous() -> FUIPaletteVersion?
  • FUIPalette version which next being adopted by developer, if exists.

    Declaration

    Swift

    public func next() -> FUIPaletteVersion?
  • Returns supported color styles in current palette.

    Declaration

    Swift

    public func supportedStyles() -> Set<FUIColorStyle>
  • Returns obsoleted color styles since current palette.

    Declaration

    Swift

    public func obsoletedStyles() -> Set<FUIColorStyle>
  • Returns new color styles added to current palette.

    Declaration

    Swift

    public func newStyles() -> Set<FUIColorStyle>
  • Declaration

    Swift

    public static var allCases: [FUIPaletteVersion] { get }