Sfoglia il codice sorgente

altered ChatViewCoordinator

nayooti 5 anni fa
parent
commit
bd0cf0e061
1 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  1. 7 0
      deltachat-ios/Coordinator/AppCoordinator.swift

+ 7 - 0
deltachat-ios/Coordinator/AppCoordinator.swift

@@ -523,6 +523,13 @@ class ChatViewCoordinator: NSObject, Coordinator {
     func showPhotoVideoLibrary(delegate: MediaPickerDelegate) {
         mediaPicker.showPhotoVideoLibrary(delegate: delegate)
     }
+
+    func showMediaGallery(currentIndex: Int, mediaUrls urls: [URL]) {
+        let betterPreviewController = BetterPreviewController(currentIndex: currentIndex, urls: urls)
+        let nav = UINavigationController(rootViewController: betterPreviewController)
+
+        navigationController.present(nav, animated: true)
+    }
 }
 
 class NewGroupAddMembersCoordinator: Coordinator {