2

I have the following problem with JSQMessageViewController in an iPhone X-range deployment.

enter image description here

The home-bar overlays the input field and the rounded bottom-corners cut-off part of the field. How can I adjust the height so this doesn't happen?

Thanks :)

Hews
  • 569
  • 6
  • 19

1 Answers1

3

I m having same problem. I m trying to solve it by adding the extension for JSQMessagesInputToolbar

extension JSQMessagesInputToolbar {
override open func didMoveToWindow() {
    super.didMoveToWindow()
    if #available(iOS 11.0, *), let window = self.window {
        let anchor = window.safeAreaLayoutGuide.bottomAnchor
           bottomAnchor.constraint(lessThanOrEqualToSystemSpacingBelow: anchor, multiplier: 1.0).isActive = true
        }
    }
}

enter image description here

Wasi Sadman
  • 1,382
  • 1
  • 15
  • 27
tabassum
  • 1,100
  • 6
  • 17