RSDMultipleComponentOptionsObject
public struct RSDMultipleComponentOptionsObject : RSDMultipleComponentOptions
A simple struct that can be used to implement the RSDMultipleComponentOptions
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
-
If this is a multiple component input field, the UI can optionally define a separator. For example, blood pressure would have a separator of
/
.Declaration
Swift
public let separator: String?
-
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]], separator: String?, isOptional: Bool, defaultAnswer: Any? = nil)