-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
Hi, i encountered an issue when i want to show typing indicator.
'Invalid update: invalid number of sections. The number of sections contained in the collection view after the update (2) must be equal to the number of sections contained in the collection view before the update (2), plus or minus the number of sections inserted or deleted (0 inserted, 1 deleted).
My code are based on the example project :
func setTypingIndicatorViewHidden(_ isHidden: Bool, performUpdates updates: (() -> Void)? = nil) {
setTypingIndicatorViewHidden(isHidden, animated: true, whilePerforming: updates) { [weak self] success in
if success, self?.isLastSectionVisible() == true {
self?.messagesCollectionView.scrollToBottom(animated: true)
}
}
}and im calling it like :
self.setTypingIndicatorViewHidden(false)Is there any step or configuration that i missed?
- MessageKit version : 3.0.0
- iOS version : 12
- Swift version : 4.2
- Testing on : Simulator