If you're using UIKit, see the documentation and sample code here. If you're using SwiftUI, you'll have to make some small bridging code using UIViewRepresentable. See the answer here for a rough example.
Topic:
Media Technologies
SubTopic:
Photos & Camera