Fixed that on iOS 14 additionally the system back button has been displayed

This commit is contained in:
dankito 2020-09-28 00:25:43 +02:00
parent bc94394937
commit 34d5877419
1 changed files with 2 additions and 0 deletions

View File

@ -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))
}