IndicatorViewModifier

@available(iOS 13.0, OSX 10.15, tvOS 13.0, watchOS 6.0, *)
public struct IndicatorViewModifier<T, V> : ViewModifier where T : View, V : IndicatorReportable

A implementation detail View Modifier with indicator SwiftUI View Modifier construced by using a internal View type which modify the body It use type system to represent the view hierarchy, and Swift some View syntax to hide the type detail for users

  • The progress reporter

    Declaration

    Swift

    @ObservedObject
    public var reporter: V { get set }
  • The indicator

    Declaration

    Swift

    public var indicator: Indicator<T>
  • Declaration

    Swift

    public func body(content: Content) -> some View