Form
@available(*, deprecated, renamed: "MessageForm", message: "This method is deprecated in 4.21.0")
open class Form: NSObject, Codable, NSCopying
Form data
Since
4.14.1-
Unique key of form.
Declaration
Swift
public let formKey: String -
Indicates the input field data information array.
Declaration
Swift
public let fields: [FormField] -
Indicates field data values that have been stored.
Declaration
Swift
public let answers: [FormFieldAnswer]? -
constructor
Declaration
Swift
public init( formKey: String, fields: [FormField], answers: [FormFieldAnswer]? = nil ) -
Default constructor.
Declaration
Swift
public required init(from decoder: Decoder) throwsParameters
decoderDecoderinstance -
Encodes this object.
Declaration
Swift
public func encode(to encoder: Encoder) throwsParameters
encoderEncoderinstance -
Copies this object
Declaration
Swift
public func copy(with zone: NSZone? = nil) -> AnyParameters
zoneoptional
NSZoneReturn Value
Forminstance
-
Indicates that the form data has already been submitted.
Declaration
Swift
public var isSubmitted: Bool -
Indicates that the form data can be submitted.
Declaration
Swift
public var canSubmit: BoolReturn Value
If
true, can be submitted NOTE: You MUST store the value entered by user interaction in thetemporaryAnswer.
View on GitHub
Install in Dash