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.

Use Target Action 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

For more SwiftUI, including a chapter on integration with UIKit, read SwiftUI by Tutorials

The coordinator can help you out with more than delegates! You can also use it to implement target action for UIKit controls in SwiftUI.