-
-
Notifications
You must be signed in to change notification settings - Fork 271
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
base: master
Are you sure you want to change the base?
Conversation
76066ae
to
82adfea
Compare
@State private var loadingItems = false | ||
@State private var firstPage = false | ||
@State private var itemsInView: Set<String> = [] |
There was a problem hiding this comment.
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()) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where is that? screenshot?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No description provided.