From 08d3cfbd66c707efd207f4dbad55e7ac06c0e5f9 Mon Sep 17 00:00:00 2001 From: dankito Date: Sun, 4 Oct 2020 23:43:19 +0200 Subject: [PATCH] Made OK Button better tapable --- ui/BankingiOSApp/BankingiOSApp/ui/views/InfoButton.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/BankingiOSApp/BankingiOSApp/ui/views/InfoButton.swift b/ui/BankingiOSApp/BankingiOSApp/ui/views/InfoButton.swift index d5cfb855..67106f9e 100644 --- a/ui/BankingiOSApp/BankingiOSApp/ui/views/InfoButton.swift +++ b/ui/BankingiOSApp/BankingiOSApp/ui/views/InfoButton.swift @@ -36,7 +36,10 @@ struct InfoButton: View { HStack { Spacer() - Button("OK") { self.showInfoPopover = false } + Button(action: { self.showInfoPopover = false }) { + Text("OK") + .frame(minWidth: 120, minHeight: 35) + } Spacer() }