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
-
All available key where customization is allowed
See moreDeclaration
Swift
public struct Key : Hashable, RawRepresentable, CustomStringConvertible
-
Used by the color palette
See moreDeclaration
Swift
public enum Color