1

I need to select the multiple videos from albums and should know the size of each video. I am trying to use Gallery but it shows both photos and videos. In my case, I need to restrict to only videos.

@IBAction func gallery(_ sender: Any) {        
    let gallery = GalleryController()
    gallery.delegate = self
    present(gallery, animated: true, completion: nil)
}
Adrian Mole
  • 49,934
  • 160
  • 51
  • 83
Sravya Gajavalli
  • 121
  • 1
  • 10

2 Answers2

0

If you want to use picker to select multiple videos from gallery, use this pod. https://github.com/opalorange/OpalImagePicker

0

add the following code in your viewdidload

 Config.tabsToShow = [.videoTab]

it will help you to show videos only .... :)

Shivam Parmar
  • 1,520
  • 11
  • 27