ProgressView
确定或不确定的原生 SwiftUI 进度指示器。
#导入
从 quickgui 导入 SwiftUiProgressView。
use quickgui::*;#用法
SwiftUiProgressView::new(1, 0.4, 1.0).label("Downloading")#API 参考
展开条目查看说明和完整签名。短横线表示声明中未记录默认值。
SwiftUiProgressView
查看源码pub fn new(id: u64, value: f64, total: f64) -> Selfindeterminatepub fn indeterminate(id: u64) -> Self—
labelpub fn label(mut self, label: impl Into<Arc<str>>) -> Self—
current_value_labelpub fn current_value_label(mut self, label: impl Into<Arc<str>>) -> Self—
Configures current value label for this part.
pub fn current_value_label(mut self, label: impl Into<Arc<str>>) -> Self查看源码test_idpub fn test_id(mut self, test_id: impl Into<Arc<str>>) -> Self—
modifierpub 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查看源码