Skip to content

SecureField

The concealed native editor with the same controlled contract as TextField.

#Import

Import SwiftUiTextField from quickgui.

use quickgui::*;

#Usage

SwiftUiTextField::new(1, secret).placeholder("Password").secure(true)

#API reference

Expand an entry for its description and complete signature. A dash means no declaration default is documented.

SwiftUiTextField

View source
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
View source
securepub fn secure(mut self, secure: bool) -> Self—

Configures secure for this part.

pub fn secure(mut self, secure: bool) -> Self
View source
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
View source
modifierpub fn modifier(mut self, modifier: SwiftUiModifier) -> Self—

Configures modifier for this part.

pub fn modifier(mut self, modifier: SwiftUiModifier) -> Self
View source
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
View source
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
View source
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
View source