arcgis-maps-sdk-swift-toolkit icon indicating copy to clipboard operation
arcgis-maps-sdk-swift-toolkit copied to clipboard

Can Inspectors replace the need for Floating Panel?

Open dfeinzimer opened this issue 5 months ago • 0 comments
trafficstars

Inspector is a new iOS/Catalyst feature as of iOS 17, which brings the familiar sidebar inspector experience from macOS to iPad. On iOS, inspectors present as sheets.

So far, I've found that inspectors largely seem to provide the functionality that necessitated Floating Panels.

Pros

  • All the benefits of using platform native controls.
  • An entire class of Toolkit issues can be closed (somewhere between ~11-15 open issues).

Cons

  • Inspectors are not yet supported on visionOS.
  • On iPadOS, in vertical orientation, background interaction is not supported.
    • This may not be a large issue, however, given this note in Apple's documentation:
      • Trailing column inspectors have their presentation state restored by the framework.

Other Notes

  • Similar to overlays (e.g. Floating Panels) nested NavigationStacks are not supported.

More info

Documentation Inspectors in SwiftUI: Discover the details from WWDC 2023

cc @rolson

dfeinzimer avatar Jun 11 '25 18:06 dfeinzimer