Augustyniak / FileExplorer

FileExplorer is a powerful iOS file browser that allows its users to choose and remove files and/or directories
Other
742 stars 111 forks source link

Help update this method #30

Open buiminhhuy opened 7 years ago

buiminhhuy commented 7 years ago
 extension FileExplorerViewController: ItemPresentationCoordinatorDelegate {
     func itemPresentationCoordinatorDidFinish(_ coordinator: ItemPresentationCoordinator) {
         dismiss(animated: true) {
           delegate?.fileExplorerViewControllerDidFinish(self)
          }

     }

     func itemPresentationCoordinator(_ coordinator: ItemPresentationCoordinator, didChooseItems items: [Item<Any>]) {
         dismiss(animated: true) {
         let urls = items.map { $0.url }
            delegate?.fileExplorerViewController(self, didChooseURLs: urls)
        }
     }
 }