BPKTextField

public struct BPKTextField : View

A control that displays an editable text interface.

Use inputState(_ state: State) to change the state of the text field.

  • Creates a BPKTextField.

    Declaration

    Swift

    public init(
        placeholder: String = "",
        _ text: Binding<String>
    )

    Parameters

    placeholder

    The placeholder text to display when the text field is empty.

    text

    The text to display in the text field.

  • Declaration

    Swift

    public var body: some View { get }
  • Declaration

    Swift

    public func inputState(_ state: State) -> BPKTextField
  • The state of the text field.

    See more

    Declaration

    Swift

    public enum State