Skip to main content


If you're adapting your app for #AppleVisionPro, you've probably added `contentShape` to your custom button styles to get a better `.hoverEffect()`

This also has a nicer side effect for VoiceOver highlighting, as it will now match the actual UI element!

#a11y #iosdev

victor tsaran reshared this.

in reply to Matt Campbell

@matt Yes! This was probably always possible in SwiftUI, just didn’t discover it until now.

UIKit always had this through the `accessibilityPath`

⇧