Scroll to last Item Bug
magicmikek opened this issue · 5 comments
magicmikek commented
dodikk commented
@magicmikek , it would be nice to have a snippet of your code which configures NMessenger
magicmikek commented
NMessenger
is configured like the example Project
magicmikek commented
This is the scroll to last Message function:
open func scrollToLastMessage(animated: Bool) { waitForMessageLock { DispatchQueue.main.async { if let indexPath = self.pickLastIndexPath() { self.scrollToIndex((indexPath as NSIndexPath).row, inSection: (indexPath as NSIndexPath).section, atPosition: .bottom, animated: animated) } //unlock the semaphore self.state.messageLock.signal() } } }
kkaliher commented
looks like you need to account for iPhone X safe area in the constraints for your custom input bar. Look at NMessengerViewController keyboardNotification(_:)