From 34d5877419422fd5827a0a47cc058129b0a2bd4d Mon Sep 17 00:00:00 2001 From: dankito Date: Mon, 28 Sep 2020 00:25:43 +0200 Subject: [PATCH] Fixed that on iOS 14 additionally the system back button has been displayed --- ui/BankingiOSApp/BankingiOSApp/extensions/ViewExtensions.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/BankingiOSApp/BankingiOSApp/extensions/ViewExtensions.swift b/ui/BankingiOSApp/BankingiOSApp/extensions/ViewExtensions.swift index 17e869b0..e24753c9 100644 --- a/ui/BankingiOSApp/BankingiOSApp/extensions/ViewExtensions.swift +++ b/ui/BankingiOSApp/BankingiOSApp/extensions/ViewExtensions.swift @@ -24,6 +24,7 @@ extension View { func customNavigationBarBackButton(onBackButtonPressed: @escaping () -> Void) -> some View { return self + .navigationBarHidden(false) .navigationBarBackButtonHidden(true) .navigationBarItems(leading: createCancelButton(onBackButtonPressed)) } @@ -31,6 +32,7 @@ extension View { func setCancelAndDoneNavigationBarButtons(onCancelPressed: @escaping () -> Void, onDonePressed: @escaping () -> Void) -> some View { return self .navigationBarHidden(false) + .navigationBarBackButtonHidden(true) .navigationBarItems(leading: createCancelButton(onCancelPressed), trailing: createDoneButton(onDonePressed)) }