Skip to content

27.2.0

Latest

Choose a tag to compare

@davdroman davdroman released this 21 Nov 05:09
a2b5e92

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 withReceiverSelector or withAncestorSelector keep 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 transparent scrollEdgeAppearance and collapsing large titles work as they do without introspection. After its target is first found, customize runs one more time. #542
  • Fixed: Introspecting a NavigationStack that is a tab's root view keeps the tab's behavior: on iOS 26, selecting a search tab expands its search field from the tab bar, and reselecting a tab pops its stack to the root view. customize also runs the latest closure of a view that's re-created before its target is found. (thanks @mvanhorn) #533
  • Fixed: .introspect(.sheet, on: .iOS(.v27)) hands over a UIPresentationController, like every earlier version. Asking for a UISheetPresentationController explicitly keeps working. #528
  • Fixed: Unavailability messages for .navigationSplitView on tvOS 27, .toggle(style: .button) on macOS 26 and 27, and .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: "27.2.0")
.product(name: "SwiftUIIntrospect", package: "swiftui-introspect")

Full Changelog: 27.1.0...27.2.0