本文へスキップ

TextField

編集と送信のコールバックを持つ、制御されたネイティブ SwiftUI TextField です。

#インポート

quickgui から SwiftUiTextField をインポートします。

use quickgui::*;

#使い方

SwiftUiTextField::new(1, name).placeholder("Name")

#API リファレンス

項目を展開すると説明と完全なシグネチャが表示されます。ダッシュは宣言に既定値が記載されていないことを示します。

SwiftUiTextField

ソースを見る
pub fn new(id: u64, text: impl Into<Arc<str>>) -> Self
placeholderpub fn placeholder(mut self, placeholder: impl Into<Arc<str>>) -> Self—

Configures placeholder for this part.

pub fn placeholder(mut self, placeholder: impl Into<Arc<str>>) -> Self
ソースを見る
securepub fn secure(mut self, secure: bool) -> Self—

Configures secure for this part.

pub fn secure(mut self, secure: bool) -> Self
ソースを見る
test_idpub fn test_id(mut self, test_id: impl Into<Arc<str>>) -> Self—

Configures test id for this part.

pub fn test_id(mut self, test_id: impl Into<Arc<str>>) -> Self
ソースを見る
modifierpub fn modifier(mut self, modifier: SwiftUiModifier) -> Self—

Configures modifier for this part.

pub fn modifier(mut self, modifier: SwiftUiModifier) -> Self
ソースを見る
modifierspub fn modifiers(mut self, modifiers: impl IntoIterator<Item = SwiftUiModifier>) -> Self—

Configures modifiers for this part.

pub fn modifiers(mut self, modifiers: impl IntoIterator<Item = SwiftUiModifier>) -> Self
ソースを見る
on_value_changepub fn on_value_change(mut self, enabled: bool) -> Self—

Configures on value change for this part.

pub fn on_value_change(mut self, enabled: bool) -> Self
ソースを見る
on_submitpub fn on_submit(mut self, enabled: bool) -> Self—

Configures on submit for this part.

pub fn on_submit(mut self, enabled: bool) -> Self
ソースを見る