PaletteVersion
public enum PaletteVersion : Int
extension PaletteVersion: CaseIterable
An enum for different version of Palette
.
-
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
-
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
-
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
-
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
-
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
-
Snapshot of palette at SAP Fiori SDK version 9.1.
Important
Referred to in SAP Fiori Design Guidelines as ‘Fiori Next’ styling.Declaration
Swift
case v8
-
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 theThemeManager.shared.setColor(...)
orThemeManager.shared.setHexColor(...)
APIs.Declaration
Swift
public static let latest: PaletteVersion
-
Palette version which previous being adopted by developer, if exists.
Declaration
Swift
public func previous() -> PaletteVersion?
-
Palette version which next being adopted by developer, if exists.
Declaration
Swift
public func next() -> PaletteVersion?
-
Returns supported color styles in current palette.
Declaration
Swift
public func supportedStyles() -> Set<ColorStyle>
-
Returns obsoleted color styles since current palette.
Declaration
Swift
public func obsoletedStyles() -> Set<ColorStyle>
-
Returns new color styles added to current palette.
Declaration
Swift
public func newStyles() -> Set<ColorStyle>
-
Declaration
Swift
public static var allCases: [PaletteVersion] { get }