Option
public struct Option : Equatable
Type to represent a setting option.
This can be e.g. a color mode option such as enhanced
or a shutter speed value like 1/50
.
-
Name of the option (machine readable).
Declaration
Swift
public let id: String
-
Description of the description (human readable).
Declaration
Swift
public let description: String?
-
Initialize a setting option from
String
.Declaration
Swift
public init(id: String, description: String? = nil)
Parameters
id
Name of the option.
description
Description of the option.
-
Initialize a setting option from
AnyObject
.- id: Name of the option.
- description: Description of the option.
Declaration
Swift
public init(id: AnyObject, description: AnyObject? = nil)
-
Declaration
Swift
public static func == (lhs: Option, rhs: Option) -> Bool