diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2021-11-04 13:33:21 +0100 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2021-11-04 17:05:34 +0100 |
| commit | 440d15a70489c07f4ce1c95b250fab734819f23b (patch) | |
| tree | 083adf1e73033675b3325a970d85867ba5b14bbc | |
| parent | addae3f5b4d190171734808c24dbba336a66cc80 (diff) | |
| download | mullvadvpn-440d15a70489c07f4ce1c95b250fab734819f23b.tar.xz mullvadvpn-440d15a70489c07f4ce1c95b250fab734819f23b.zip | |
Force split view controlller subclass to forward appearance events on iOS 12
| -rw-r--r-- | ios/MullvadVPN/CustomSplitViewController.swift | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ios/MullvadVPN/CustomSplitViewController.swift b/ios/MullvadVPN/CustomSplitViewController.swift index 8f85e7064c..86e26b8bbd 100644 --- a/ios/MullvadVPN/CustomSplitViewController.swift +++ b/ios/MullvadVPN/CustomSplitViewController.swift @@ -32,6 +32,11 @@ class CustomSplitViewController: UISplitViewController, RootContainment { } } + override var shouldAutomaticallyForwardAppearanceMethods: Bool { + // iOS 12: force split view controller to forward appearance events. + return true + } + override func viewDidLayoutSubviews() { super.viewDidLayoutSubviews() |
