What's Changed
- Changed: On iOS, tvOS and visionOS, introspection places plain views around its receiver instead of child view controllers, so tab bar, navigation and split view controllers behave as if the introspection weren't there. Custom types that use
withReceiverSelectororwithAncestorSelectorkeep receiving a view controller. #535 - Performance: Introspection finds its target faster, especially when one container holds many introspected views. #535 #536
- Fixed: Introspecting a scroll view that a UIKit view controller hosts, such as through a child
UIHostingController, no longer stops that view controller's navigation bar from tracking it, so a transparentscrollEdgeAppearanceand collapsing large titles work as they do without introspection. After its target is first found,customizeruns one more time. #542 - Fixed: Introspecting a
NavigationStackthat is a tab's root view keeps the tab's behavior, such as reselecting a tab popping its stack to the root view.customizealso runs the latest closure of a view that's re-created before its target is found. (thanks @mvanhorn) #533 - Fixed: Unavailability messages for
.list(style: .bordered)on macOS 10.15 and 11. #528 - Docs: An article on idempotent customization, linked from the README. #543
Swift Package Manager
.package(url: "https://github.com/siteline/swiftui-introspect", from: "1.6.0").product(name: "SwiftUIIntrospect", package: "swiftui-introspect")Full Changelog: 1.5.0...1.6.0