-
Notifications
You must be signed in to change notification settings - Fork 593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scroll to specific Message Item #437
Comments
Same question. Has anyone already been able to fix it? The issue has been open since February 6. |
Have the same issue. Any workaround? |
+1 |
Hi everyone! if let index = self?.chatItemCompanionCollection.indexOf(messageModel.uid),
let uid = self?.chatItemCompanionCollection[index].uid {
self?.scrollToItem(withId: uid, position: .centeredVertically, animated: true)
} |
@seidju I just checked the demo app. I modified @objc
private func handleTapOnScrollToBottomButton() {
guard self.chatItemCompanionCollection.count > 0 else { return }
let startIndex = self.chatItemCompanionCollection.startIndex
self.scrollToItem(withId: self.chatItemCompanionCollection[startIndex].uid, position: .top, animated: true)
} Having |
@AntonPalich Yep, I just checked it again and it was my stupid mistake (used wrong |
Hi @AntonPalich , I want to implement Reply functionality, so user, after he taps on "replied" message scrolls to original message.
The main problem is, that sliding data source doesn't give me all items at once, so before scrolling, I need to add messages to dataSource, something like this:
Now, I call something like recursively append images to SlidingDataSource, until desired
messageId
would contains inchatItems
:My question - how to scroll to this message, even if it's already in
chatItems
. I tried to just usebut I got an error ,that cell at
ip
is doesn't exist.Thanks for any help or advice!
The text was updated successfully, but these errors were encountered: