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

    onItemPicked

    A callback that will be called when the user picks a video. The callback will receive an NSItemProvider that 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