Theme

public struct Theme

Use this structure to create and implement your own custom theme. Check out Theme.Key enums to know what can be configured.

  • Key

    Declaration

    Swift

    public let name: String
  • Set or Update value for key

    Declaration

    Swift

    public mutating func setValue(_ value: Any, forKey key: Theme.Key)

    Parameters

    value

    Any

    key

    Key

  • Updating all values for keys passed as parameter. Merging behavior: New keys are added and existing key are overridden with new value

    Declaration

    Swift

    public mutating func updateValues(with newValues: [Theme.Key : Any])

    Parameters

    newValues

    Set of key/value

  • Key

    All available key where customization is allowed

    See more

    Declaration

    Swift

    public struct Key : Hashable, RawRepresentable, CustomStringConvertible
  • Used by the color palette

    See more

    Declaration

    Swift

    public enum Color