Skip to content

27.1.0

Latest

Choose a tag to compare

@davdroman davdroman released this 07 Oct 09:29
7f76fe1

What's Changed

  • Added: .progressView introspection for indeterminate ProgressView() and ProgressView("Loading"), without a style modifier. Exposes UIActivityIndicatorView on UIKit and NSProgressIndicator on AppKit. #527
import SwiftUI
import SwiftUIIntrospect

ProgressView("Loading")
    .introspect(.progressView, on: .iOS(.v14, .v15, .v16, .v17, .v18, .v26, .v27)) { activityIndicator in
        activityIndicator.color = .systemBlue
    }

For determinate ProgressView(value:), use .progressViewStyle(.linear) and introspect with .progressView(style: .linear).

Swift Package Manager

.package(url: "https://github.com/siteline/swiftui-introspect", from: "27.1.0")
.product(name: "SwiftUIIntrospect", package: "swiftui-introspect")

Full Changelog: 27.0.0...27.1.0