Skip to content
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

ios: better scrolling in chat view #4353

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

ios: better scrolling in chat view #4353

wants to merge 6 commits into from

Conversation

epoberezkin
Copy link
Member

No description provided.

@State private var loadingItems = false
@State private var firstPage = false
@State private var itemsInView: Set<String> = []
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Constantly updating the itemsInView state while scrolling,
will cause the whole ChatView to be re-evaluated every time new chatItem appears

content()
.frame(width: 44, height: 44)
.background(Material.thin)
.clipShape(Circle())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sneaking in a small visual change here by using a Material to enhance contrast,
when scrolling over messages.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where is that? screenshot?

Copy link
Collaborator

@levitatingpineapple levitatingpineapple Jun 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@epoberezkin

buttom.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants