From a814ee37cca42da6111e7452a69ea2a0dea41d62 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sat, 22 Feb 2020 15:29:42 -0500 Subject: [PATCH] Update SheetController Fixes image picker losing velocity during dismiss animation --- Tusker.xcworkspace/xcshareddata/swiftpm/Package.resolved | 2 +- .../AssetPickerSheetContainerViewController.swift | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/Tusker.xcworkspace/xcshareddata/swiftpm/Package.resolved b/Tusker.xcworkspace/xcshareddata/swiftpm/Package.resolved index dbc2ec1a..30987bbb 100644 --- a/Tusker.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/Tusker.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -6,7 +6,7 @@ "repositoryURL": "https://git.shadowfacts.net/shadowfacts/SheetController.git", "state": { "branch": "master", - "revision": "6ee1ad24ec8620f5c17416d6141643f0787708ba", + "revision": "6926446c4e15eb7f4513c4c00df9279553b330be", "version": null } } diff --git a/Tusker/Screens/Compose/Asset Picker/AssetPickerSheetContainerViewController.swift b/Tusker/Screens/Compose/Asset Picker/AssetPickerSheetContainerViewController.swift index b36c599c..5e4e3b24 100644 --- a/Tusker/Screens/Compose/Asset Picker/AssetPickerSheetContainerViewController.swift +++ b/Tusker/Screens/Compose/Asset Picker/AssetPickerSheetContainerViewController.swift @@ -40,13 +40,6 @@ class AssetPickerSheetContainerViewController: SheetContainerViewController { } extension AssetPickerSheetContainerViewController: SheetContainerViewControllerDelegate { - func sheetContainer(_ sheetContainer: SheetContainerViewController, willSnapToDetent detent: Detent) -> Bool { - if detent == .bottom { - dismiss(animated: true) - return false - } - return true - } func sheetContainerContentScrollView(_ sheetContainer: SheetContainerViewController) -> UIScrollView? { if let vc = assetPicker.visibleViewController as? UITableViewController { return vc.tableView