summaryrefslogtreecommitdiffhomepage
path: root/ios/MullvadVPN/Containers/Navigation
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2023-08-09 12:28:23 +0200
committerAndrej Mihajlov <and@mullvad.net>2023-08-10 13:25:13 +0200
commitf8d4458021ea7cc6014689c35dc2fe06308c588a (patch)
treed0fdbaf82bbd99b80e00aa4dd6dc8b585cd4e509 /ios/MullvadVPN/Containers/Navigation
parent67857f85560c3efd745873244bfc81298d7b9a77 (diff)
downloadmullvadvpn-f8d4458021ea7cc6014689c35dc2fe06308c588a.tar.xz
mullvadvpn-f8d4458021ea7cc6014689c35dc2fe06308c588a.zip
Remove iOS 13 code
Diffstat (limited to 'ios/MullvadVPN/Containers/Navigation')
-rw-r--r--ios/MullvadVPN/Containers/Navigation/UINavigationBar+Appearance.swift17
1 files changed, 4 insertions, 13 deletions
diff --git a/ios/MullvadVPN/Containers/Navigation/UINavigationBar+Appearance.swift b/ios/MullvadVPN/Containers/Navigation/UINavigationBar+Appearance.swift
index 8d98f6cef4..5f69286878 100644
--- a/ios/MullvadVPN/Containers/Navigation/UINavigationBar+Appearance.swift
+++ b/ios/MullvadVPN/Containers/Navigation/UINavigationBar+Appearance.swift
@@ -62,19 +62,10 @@ extension UINavigationBar {
navigationBarAppearance.doneButtonAppearance = doneBarButtonAppearance
navigationBarAppearance.backButtonAppearance = backButtonAppearance
- if #available(iOS 14, *) {
- navigationBarAppearance.setBackIndicatorImage(
- backIndicatorImage,
- transitionMaskImage: backIndicatorTransitionMask
- )
- } else {
- // Bug: on iOS 13 setBackIndicatorImage accepts parameters in backward order
- // https://stackoverflow.com/a/58171229/351305
- navigationBarAppearance.setBackIndicatorImage(
- backIndicatorTransitionMask,
- transitionMaskImage: backIndicatorImage
- )
- }
+ navigationBarAppearance.setBackIndicatorImage(
+ backIndicatorImage,
+ transitionMaskImage: backIndicatorTransitionMask
+ )
return navigationBarAppearance
}