Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
  2.  
  3. let sharedItem = FileItem()
  4. sharedItem.path = url
  5. sharedItem.name = url.lastPathComponent
  6. sharedItem.image = self.loadUIImage(fileURL: url)
  7.  
  8. let pickFilesViewController = self.window?.rootViewController as? FirstViewController
  9.  
  10. pickFilesViewController?.selectedFiles.append(sharedItem)
  11.  
  12. pickFilesViewController?.filesTableView.reloadData()
  13.  
  14. return true
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement