Bringing Photos picker to your SwiftUI app | Apple Developer Documentation
Select media assets by using a Photos picker view that SwiftUI provides.