Skip to content

DatePicker

A controlled native date or date-and-time picker.

#Import

Import SwiftUiDatePicker from quickgui.

use quickgui::*;

#Usage

SwiftUiDatePicker::new(1, timestamp).label("Start")

#API reference

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

SwiftUiDatePicker

View source
pub fn new(id: u64, value: f64) -> Self
rangepub fn range(mut self, minimum: Option<f64>, maximum: Option<f64>) -> Self—

Configures range for this part.

pub fn range(mut self, minimum: Option<f64>, maximum: Option<f64>) -> Self
View source
componentspub fn components(mut self, components: SwiftUiDatePickerComponents) -> Self—

Configures components for this part.

pub fn components(mut self, components: SwiftUiDatePickerComponents) -> Self
View source
stylepub fn style(mut self, style: SwiftUiDatePickerStyle) -> Self—

Configures style for this part.

pub fn style(mut self, style: SwiftUiDatePickerStyle) -> Self
View source
labelpub fn label(mut self, label: impl Into<Arc<str>>) -> Self—

Configures label for this part.

pub fn label(mut self, label: impl Into<Arc<str>>) -> 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