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-StaticandSwiftUIIntrospect-DynamicSwiftPM products. The package exposesSwiftUIIntrospectwith 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: "1.4.0").product(name: "SwiftUIIntrospect", package: "swiftui-introspect")Full Changelog: 1.3.1...1.4.0