RSDChoiceOptionsObject
public struct RSDChoiceOptionsObject : RSDChoiceOptions
A simple struct that can be used to implement the RSDChoiceOptions
protocol.
-
A list of choices for the input field.
Declaration
Swift
public let choices: [RSDChoice]
-
A Boolean value indicating whether the user can skip the input field without providing an answer.
Declaration
Swift
public let isOptional: Bool
-
The default answer associated with this option set.
Declaration
Swift
public let defaultAnswer: Any?
-
Default initializer. Auto-synthesized init is not public.
Declaration
Swift
public init(choices: [RSDChoice], isOptional: Bool, defaultAnswer: Any? = nil)