Fixed that on iOS 14 additionally the system back button has been displayed
This commit is contained in:
parent
bc94394937
commit
34d5877419
|
@ -24,6 +24,7 @@ extension View {
|
||||||
|
|
||||||
func customNavigationBarBackButton(onBackButtonPressed: @escaping () -> Void) -> some View {
|
func customNavigationBarBackButton(onBackButtonPressed: @escaping () -> Void) -> some View {
|
||||||
return self
|
return self
|
||||||
|
.navigationBarHidden(false)
|
||||||
.navigationBarBackButtonHidden(true)
|
.navigationBarBackButtonHidden(true)
|
||||||
.navigationBarItems(leading: createCancelButton(onBackButtonPressed))
|
.navigationBarItems(leading: createCancelButton(onBackButtonPressed))
|
||||||
}
|
}
|
||||||
|
@ -31,6 +32,7 @@ extension View {
|
||||||
func setCancelAndDoneNavigationBarButtons(onCancelPressed: @escaping () -> Void, onDonePressed: @escaping () -> Void) -> some View {
|
func setCancelAndDoneNavigationBarButtons(onCancelPressed: @escaping () -> Void, onDonePressed: @escaping () -> Void) -> some View {
|
||||||
return self
|
return self
|
||||||
.navigationBarHidden(false)
|
.navigationBarHidden(false)
|
||||||
|
.navigationBarBackButtonHidden(true)
|
||||||
.navigationBarItems(leading: createCancelButton(onCancelPressed), trailing: createDoneButton(onDonePressed))
|
.navigationBarItems(leading: createCancelButton(onCancelPressed), trailing: createDoneButton(onDonePressed))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue