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
placeholderThe placeholder text to display when the text field is empty.
textThe 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 moreDeclaration
Swift
public enum State