jessesquires/JSQMessagesViewController

Does not work properly with iOS 11

carlos-martin opened this issue ยท 2 comments

New issue checklist

General information

  • JSQMessagesViewController version: 7.3.5
  • iOS version: 11.0
  • Devices/Simulators: iPhone 5s
  • Reproducible in the demo project? (Yes/No): n/a
  • Any related issues:

What happened?

When you access the first time to that view the navigation bar hides the top part. The first message will appear behind the navigation bar and doing scroll up and scroll down does not fix it, just will be fixed when the user start creating a new message on the chat.

Hello everyone!

I'm sorry to inform the community that I'm officially deprecating this project. ๐Ÿ˜ข Please read my blog post for details:

http://www.jessesquires.com/blog/officially-deprecating-jsqmessagesviewcontroller/

Thus, I'm closing all issues and pull requests and making the necessary updates to formally deprecate the library. I'm sorry if this is unexpected or disappointing. Please know that this was an extremely difficult decision to make. I'd like to thank everyone here for contributing and making this project so great. It was a fun 4 years. ๐Ÿ˜Š

Thanks for understanding,
โ€” jsq

Hi, maybe this can help you.
Put these piece of code into viewDidLoad() of your viewcontroller that subclasses JSQMessageViewController.

if #available(iOS 11.0, *){ self.collectionView.contentInsetAdjustmentBehavior = .never self.collectionView.contentInset = UIEdgeInsetsMake(64, 0, 0, 0) self.collectionView.scrollIndicatorInsets = self.collectionView.contentInset }