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.
Post
Replies
Boosts
Views
Activity
I faced a similar issue and setting the merge policy solved the issue.
managedObjectContext.mergePolicy = NSMergeByPropertyObjectTrumpMergePolicy