FWStyleSpecification
public struct FWStyleSpecification : Codable
extension FWStyleSpecification: Equatable
The custom color style specification.
-
Used to highlight buttons and interactable elements.
Declaration
Swift
var accent: UIColor
-
Form view background color.
Declaration
Swift
var background: UIColor
-
Component view background color.
Declaration
Swift
var componentBackground: UIColor
-
Component title text color.
Declaration
Swift
var componentTitle: UIColor
-
Component description text color.
Declaration
Swift
var componentDescription: UIColor
-
Component input field text color.
Declaration
Swift
var componentInputText: UIColor
-
Component input background color.
Declaration
Swift
var componentInputBackground: UIColor
-
Component required checkmark color.
Declaration
Swift
var componentRequired: UIColor
-
Component valid input checkmark color.
Declaration
Swift
var componentCorrect: UIColor
-
Component placeholder text color.
Declaration
Swift
var componentPlaceholder: UIColor
-
Creates a new instance with default values
Declaration
Swift
public init()
-
init(accent:
background: componentBackground: componentTitle: componentDescription: componentInputText: componentInputBackground: componentRequired: componentCorrect: componentPlaceholder: ) Creates a new instance with given values
Declaration
Swift
init(accent: UIColor, background: UIColor, componentBackground: UIColor, componentTitle: UIColor, componentDescription: UIColor, componentInputText: UIColor, componentInputBackground: UIColor, componentRequired: UIColor, componentCorrect: UIColor, componentPlaceholder: UIColor)
-
Creates a new instance by decoding from the given decoder.
This initializer throws an error if reading from the decoder fails, or if the data read is corrupted or otherwise invalid.
Declaration
Swift
public init(from decoder: Decoder) throws
Parameters
decoder
The decoder to read data from.
-
Encodes this value into the given encoder.
If the value fails to encode anything,
encoder
will encode an empty keyed container in its place.This function throws an error if any values are invalid for the given encoder’s format.
Declaration
Swift
public func encode(to encoder: Encoder) throws
Parameters
encoder
The encoder to write data to.
-
Declaration
Swift
public static func == (lhs: FWStyleSpecification, rhs: FWStyleSpecification) -> Bool