Post

Replies

Boosts

Views

Activity

Reply to SwiftUI VideoPlayer (Video Controls) in iOS14
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:
May ’23
Reply to SwiftUI VideoPlayer (Video Controls) in iOS14
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:
Replies
Boosts
Views
Activity
May ’23
Reply to Could not merge changes: with oldVersion = 0 and newVersion = 4
I faced a similar issue and setting the merge policy solved the issue. managedObjectContext.mergePolicy = NSMergeByPropertyObjectTrumpMergePolicy
Replies
Boosts
Views
Activity
Jun ’22