Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
- let sharedItem = FileItem()
- sharedItem.path = url
- sharedItem.name = url.lastPathComponent
- sharedItem.image = self.loadUIImage(fileURL: url)
- let pickFilesViewController = self.window?.rootViewController as? FirstViewController
- pickFilesViewController?.selectedFiles.append(sharedItem)
- pickFilesViewController?.filesTableView.reloadData()
- return true
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement