github siteline/swiftui-introspect 26.1.0

latest release: 27.0.0
2 hours ago

What's Changed

  • Added: Public range-based platform version predicates for iOS, tvOS, macOS, and visionOS, available with a normal import SwiftUIIntrospect.
  • Removed: CocoaPods support. These releases are distributed through Swift Package Manager. Existing CocoaPods releases remain available.
  • Removed: The SwiftUIIntrospect-Static and SwiftUIIntrospect-Dynamic SwiftPM products. The package exposes SwiftUIIntrospect with automatic linkage.
import SwiftUI
import SwiftUIIntrospect

ScrollView {
    Text("Item")
}
.introspect(.scrollView, on: .iOS(.v13...)) { scrollView in
    scrollView.bounces = false
}

A range reuses its lower bound’s selector on later OS versions. If the underlying UIKit/AppKit type changes, the customization closure may not run. Custom introspectable types and @Weak still require @_spi(Advanced).

Swift Package Manager

Remove SwiftUIIntrospect from your Podfile and add the Swift package and target product shown below.

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

Full Changelog: 26.0.2...26.1.0

Don't miss a new swiftui-introspect release

NewReleases is sending notifications on new releases.