DatePicker
制御されたネイティブの日付または日時ピッカーです。
#インポート
quickgui から SwiftUiDatePicker をインポートします。
use quickgui::*;#使い方
SwiftUiDatePicker::new(1, timestamp).label("Start")#API リファレンス
項目を展開すると説明と完全なシグネチャが表示されます。ダッシュは宣言に既定値が記載されていないことを示します。
SwiftUiDatePicker
ソースを見るpub fn new(id: u64, value: f64) -> Selfrangepub 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ソースを見るcomponentspub fn components(mut self, components: SwiftUiDatePickerComponents) -> Self—
Configures components for this part.
pub fn components(mut self, components: SwiftUiDatePickerComponents) -> Selfソースを見るstylepub fn style(mut self, style: SwiftUiDatePickerStyle) -> Self—
labelpub fn label(mut self, label: impl Into<Arc<str>>) -> 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ソースを見る