Open buiminhhuy opened 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) } } }