This code resolved it for me, but it will change the behavior of all AVPlayerViewControllers in the app.
extension AVPlayerViewController {
override open func viewDidLoad() {
super.viewDidLoad()
self.showsPlaybackControls = false
}
}
If you want to only affect a particular instance, you may want to subclass AVPlayerViewController and use UIViewRepresentable to wrap it for SwiftUI.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: