Large Content Viewer in SwiftUI

Is there a good alternative to UILargeContentViewerInteraction in SwiftUI? I know that TabBar has support for the large content viewer, but I'm not sure how to implement it in a custom control. Any ideas? I've tried adding UILargeContentViewerInteraction to a UIKit wrapper, but I must've been doing that wrong because all it did was interrupt long presses. Thanks!

Replies

If you're targeting iOS 15+ there's an official API: https://developer.apple.com/documentation/swiftui/image/accessibilityshowslargecontentviewer(_:)