Merge branch 'develop' of https://gitlab.verizon.com/BPHV_MIPS/vds_ios_sample into vasavk/calendar

This commit is contained in:
vasavk 2024-04-30 11:27:13 +05:30
commit ab4b1d4ce8
2 changed files with 17 additions and 2 deletions

View File

@ -696,7 +696,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 59;
CURRENT_PROJECT_VERSION = 60;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = FCMA4QKS77;
GENERATE_INFOPLIST_FILE = YES;
@ -731,7 +731,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 59;
CURRENT_PROJECT_VERSION = 60;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = FCMA4QKS77;
GENERATE_INFOPLIST_FILE = YES;

View File

@ -261,6 +261,21 @@ public class BaseViewController<Component: UIView>: UIViewController, Initable ,
loadCustomRotors()
UIAccessibility.post(notification: .screenChanged, argument: component)
}
if component.canBecomeFirstResponder {
let tapGesture = UITapGestureRecognizer(target: self, action: #selector(dismissKeyboard))
tapGesture.cancelsTouchesInView = false // This allows the tap to pass through to other views.
view.addGestureRecognizer(tapGesture)
}
}
@objc func dismissKeyboard(_ sender: UITapGestureRecognizer) {
let location = sender.location(in: self.view)
// Check if the touch is outside the textView
if !component.frame.contains(location) {
component.resignFirstResponder()
}
}
func isViewHiddenByKeyboard(view: UIView, keyboardFrame: CGRect) -> Bool {