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
Found a solution without empty space below input toolbar on iPhoneX, the idea that not the whole toolbar self should be above the safe area, but only its self.contentView:
-(void) didMoveToWindow{
[super didMoveToWindow];
if (@available(iOS 11.0, *)) {
if (self.window.safeAreaLayoutGuide != nil) {
[[self.contentView bottomAnchor] constraintLessThanOrEqualToSystemSpacingBelowAnchor:self.window.safeAreaLayoutGuide.bottomAnchor multiplier:1.0].active = YES;
}
}
}