VideoPickerView
public struct VideoPickerView : UIViewControllerRepresentable
A SwiftUI view that allows the user to pick a video from the photo library.
-
Initializes a new instance of the VideoPickerView with a callback for when the user picks a video.
Declaration
Swift
public init(onItemPicked: ((NSItemProvider?) -> Void)?)Parameters
onItemPickedA callback that will be called when the user picks a video. The callback will receive an
NSItemProviderthat contains the video. -
Declaration
Swift
public func makeUIViewController(context: Context) -> some UIViewController -
Declaration
Swift
public func updateUIViewController(_ uiViewController: UIViewControllerType, context: Context) -
Declaration
Swift
public func makeCoordinator() -> Coordinator -
Declaration
Swift
public class Coordinator : NSObject, PHPickerViewControllerDelegate
VideoPickerView Structure Reference