From 425982291c014d11a94bd093caeea6d3eeba06e0 Mon Sep 17 00:00:00 2001 From: dankito Date: Mon, 28 Sep 2020 00:36:29 +0200 Subject: [PATCH] Removed that onBackButtonPressed label has to be entered --- .../BankingiOSApp/extensions/ViewExtensions.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/BankingiOSApp/BankingiOSApp/extensions/ViewExtensions.swift b/ui/BankingiOSApp/BankingiOSApp/extensions/ViewExtensions.swift index e24753c9..be128875 100644 --- a/ui/BankingiOSApp/BankingiOSApp/extensions/ViewExtensions.swift +++ b/ui/BankingiOSApp/BankingiOSApp/extensions/ViewExtensions.swift @@ -20,9 +20,9 @@ extension View { .navigationBarHidden(false) .navigationBarTitle(title, displayMode: displayMode) } - - - func customNavigationBarBackButton(onBackButtonPressed: @escaping () -> Void) -> some View { + + + func customNavigationBarBackButton(_ onBackButtonPressed: @escaping () -> Void) -> some View { return self .navigationBarHidden(false) .navigationBarBackButtonHidden(true)