Post

Replies

Boosts

Views

Activity

SwiftUI: Video content inside NavigationLink fails user interaction for playback
While this might not be specific to just video players, and in my case an embedded YouTube video using a WKWebView component, I need to know how to access the user accessibility of the embedded control while inside a NavigationLink item. My basic setup: NavigationView { &#9;ScrollView { &#9;&#9;ForEach (items) { item in &#9;&#9;&#9;NavigationLink(destination: DetailView(item: item) { &#9;&#9;&#9;&#9; <content> &#9;&#9;&#9;} &#9;&#9;} &#9;} } My <content> includes what I want to be a playable video. Since the whole block of content is wrapped in the NavigationLink, it seems to override the user interaction of the embedded control. I have the embedded videos working, I just can't play them without being instead launched into the DetailView. XCode Version 12.0.1 (12A7300)
0
0
355
Oct ’20