Initializer

init(text:prompt:label:)

Creates a secure field with a prompt generated from a Text.

Declaration 宣言

init(text: Binding<String>, prompt: Text? = nil, label: () -> Label)
Available when Label conforms to View. LabelViewに準拠する場合に利用可能です。

Parameters パラメータ

text

The text to display and edit.

prompt

A Text representing the prompt of the secure field which provides users with guidance on what to type into the secure field.

label

A view that describes the purpose of the secure field.

See Also 参照

Creating a Secure Text Field