Get immediate access to this and over 1,500+ other videos and books.

Boost your skills with a Ultimate Beginner Subscription. With over 60+ video courses and our core foundational programming books bundled in one subscription, it’s simply the best investment you can make in your development career.

Implement a UIKit Delegate with a Coordinator

To see another way to add a PHPicker to your SwiftUI app, check out this video about Combine & SwiftUI: WWDC 2020: Combine & SwiftUI

SwiftUI doesn't make much use of the delegate pattern, but it's required for many UIKit controls like the PHPicker. Use a coordinator to add the delegates you need to host UIKit views.