I know that this library is already deprecated, but has anyone fixed the problem with the inputToolBar and iPhone X? Currently the inputToolBar is partially covered.Check out the attached image.
Thanks in advance
In case you don't want to change the code in the pod and use are more swifty-like extension you can use the following code:
extension JSQMessagesInputToolbar {
override open func didMoveToWindow() {
super.didMoveToWindow()
guard let window = window else { return }
if #available(iOS 11.0, *) {
let anchor = window.safeAreaLayoutGuide.bottomAnchor
bottomAnchor.constraintLessThanOrEqualToSystemSpacingBelow(anchor, multiplier: 1.0).isActive = true
}
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With