I have tried the swift example of JSQMessageViewController inside iOS 11 simulator. Here is the result:screenshot
I have tried using safe area margin an
I am proposing a fixed fork based on the JSQ latest develop branch commit.
It is using the didMoveToWindow solution. Not ideal but worth to try while waiting for Apple's answer about inputAccessoryView's safe area layout guide attachment, or any other better fix.
You can add this to your Podfile, replacing the previous JSQ line:
pod 'JSQMessagesViewController', :git => 'https://github.com/Tulleb/JSQMessagesViewController.git', :branch => 'develop', :inhibit_warnings => true
For anyone having issues with the toolbar even after applying the didMoveToWindow fix, it might be due to IQKeyboardManager.
With IQKeyboardManager I've experienced some problems when scrolling down (hiding keyboard) or tapping "intro", so it's better to have it disabled for that specific ViewController where the chat is. In that way, there won't be that undesired margin at the bottom.