summaryrefslogtreecommitdiffhomepage
path: root/ios
diff options
context:
space:
mode:
Diffstat (limited to 'ios')
-rw-r--r--ios/MullvadVPN/PreferencesViewController.swift7
1 files changed, 7 insertions, 0 deletions
diff --git a/ios/MullvadVPN/PreferencesViewController.swift b/ios/MullvadVPN/PreferencesViewController.swift
index d0130bd9a8..56204c995a 100644
--- a/ios/MullvadVPN/PreferencesViewController.swift
+++ b/ios/MullvadVPN/PreferencesViewController.swift
@@ -47,6 +47,13 @@ class PreferencesViewController: UITableViewController, PreferencesDataSourceDel
override func setEditing(_ editing: Bool, animated: Bool) {
dataSource.setEditing(editing, animated: animated)
+ if #available(iOS 13.0, *) {
+ // Disable swipe to dismiss when editing
+ isModalInPresentation = editing
+ } else {
+ // no-op
+ }
+
super.setEditing(editing, animated: animated)
}