TextField

public struct TextField : View, ChangeInputEventResponder

A control that displays an editable text interface.

  • Declaration

    Swift

    public typealias Body = Never
  • Declaration

    Swift

    public func onChangeInputEvent(newValue: String)
  • Declaration

    Swift

    public func html(forHTMLOfSubnodes htmlOfSubnodes: [HTMLNode]) -> HTMLNode
  • Creates an instance with a title string and a binding for the editable value.

    Declaration

    Swift

    public init<S>(_ title: S, text: Binding<String>) where S : StringProtocol
  • Creates an instance which passes the value of this TextField through the provided Formatter.

    Declaration

    Swift

    public init<S, T>(_ title: S, value: Binding<T>, formatter: Formatter) where S : StringProtocol