ProgressViewWithLinearStyleType
@MainActor
public struct ProgressViewWithLinearStyleType : IntrospectableViewType
An abstract representation of the ProgressView
type in SwiftUI, with .linear
style.
struct ContentView: View {
var body: some View {
ProgressView(value: 0.5)
.progressViewStyle(.linear)
.introspect(.progressView(style: .linear), on: .iOS(.v14Later)) {
print(type(of: $0)) // UIProgressView
}
}
}