CLASS

FormField

Contents

public class FormField: Codable, Equatable

A based form field model that contains common properties. Subclasses should be used to access specific information.

Properties

name

public let name: String

The name of the field.

label

public let label: Message?

The label describing the purpose of the field to the user.

placeholder

public let placeholder: Message?

A hint for possible values of the field.

Methods

==(::)

public static func == (lhs: FormField, rhs: FormField) -> Bool

Parameters

Name Description
lhs A value to compare.
rhs Another value to compare.