STRUCT

TextFormField

Contents

public struct TextFormField: FormField, OptionalValueString

A text form field.

Properties

name

public let name: String

label

public let label: Message?

placeholder

public let placeholder: Message?

kind

public let kind: Kind?

The kind of the field. The kind of a field specializes its meaning, allowing clients that support a certain "kind" to provide an improved user experience.

value

public let value: String?

The current value of the text field.

Methods

init(from:)

public init(from decoder: Decoder) throws

Parameters

Name Description
decoder The decoder to read data from.

encode(to:)

public func encode(to encoder: Encoder) throws

Parameters

Name Description
encoder The encoder to write data to.

==(::)

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

Returns a Bool value that indicates whether the receiver and a given object are equal.