OneScript

progressViewStyle

Set the native SwiftUI style for progress views.

progressViewStyle(value) sets the SwiftUI style for the current ProgressView or descendant ProgressViews.

Supported values: automatic, linear, and circular. By default, determinate progress is a linear bar and indeterminate progress is a spinner. On iOS, circular always shows a spinner, even when value is set.

import { Modifier, ProgressView } from "onescript/views"

<ProgressView
  value={0.4}
  modifier={Modifier.progressViewStyle("linear")}
>
  Uploading
</ProgressView>

How is this guide?

Last updated on