ProgressIndicator
@available(iOS 13.0, OSX 10.15, tvOS 13.0, watchOS 6.0, *)
public struct ProgressIndicator : PlatformViewRepresentable
A progress bar indicator (system style)
-
Create indicator with animation binding, progress binding and the style
Declaration
Swift
public init(_ isAnimating: Binding<Bool>, progress: Binding<Double>, style: Style = .default)
Parameters
isAnimating
The binding to control the animation
progress
The binding to update the progress
style
The indicator style
-
-
Declaration
Swift
public typealias UIViewType = ProgressIndicatorWrapper
-
Declaration
Swift
public func makeUIView(context: UIViewRepresentableContext<ProgressIndicator>) -> ProgressIndicatorWrapper
-
Declaration
Swift
public func updateUIView(_ uiView: ProgressIndicatorWrapper, context: UIViewRepresentableContext<ProgressIndicator>)
-
-
-
Declaration
Swift
public typealias NSViewType = ProgressIndicatorWrapper
-
-
-
-
Declaration
Swift
public func makeNSView(context: NSViewRepresentableContext<ProgressIndicator>) -> ProgressIndicatorWrapper
-
Declaration
Swift
public func updateNSView(_ nsView: ProgressIndicatorWrapper, context: NSViewRepresentableContext<ProgressIndicator>)
-
Undocumented
See moreDeclaration
Swift
public enum Style