From fc6d2042afb634fede2ce0471038ea32da559d1b Mon Sep 17 00:00:00 2001 From: dankito Date: Sun, 4 Oct 2020 23:21:05 +0200 Subject: [PATCH] Fixed that iOS 14 sometimes doesn't focus text field on click --- .../BankingiOSApp/ui/UIKit/LabelledUIKitTextField.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ui/BankingiOSApp/BankingiOSApp/ui/UIKit/LabelledUIKitTextField.swift b/ui/BankingiOSApp/BankingiOSApp/ui/UIKit/LabelledUIKitTextField.swift index 82a1b047..4a8da40c 100644 --- a/ui/BankingiOSApp/BankingiOSApp/ui/UIKit/LabelledUIKitTextField.swift +++ b/ui/BankingiOSApp/BankingiOSApp/ui/UIKit/LabelledUIKitTextField.swift @@ -83,6 +83,11 @@ struct LabelledUIKitTextField: View { }) .hidden() // Hide the background ) + .onTapGesture { + DispatchQueue.main.async { + self.focusTextField = true + } + } } }