Answers for "how to get the height of keyboard xcode"

0

how to get the height of keyboard xcode

@objc func keyboardWillShow(_ notification: Notification) {
    if let keyboardFrame: NSValue = notification.userInfo?[UIResponder.keyboardFrameEndUserInfoKey] as? NSValue {
        let keyboardRectangle = keyboardFrame.cgRectValue
        let keyboardHeight = keyboardRectangle.height
    }
}
Posted by: Guest on July-17-2020

Code answers related to "how to get the height of keyboard xcode"

Browse Popular Code Answers by Language