Closed boscojwho closed 1 year ago
I know of this issue, this is why there is this hacky workaround that retains the height of an image. From what I gathered, it has something to do with LazyVStack and AsyncImage combo.
One solution would likely be switching to normal VStack. This will cost some memory, buuuuut that will fix issues with retention of height and images themselves.
There may be other fixes, but I have not researched them thoroughly.
I know of this issue, this is why there is this hacky workaround that retains the height of an image. From what I gathered, it has something to do with LazyVStack and AsyncImage combo.
Indeed: Found this post here with the exact same issue.
One solution would likely be switching to normal VStack. This will cost some memory, buuuuut that will fix issues with retention of height and images themselves.
Changing the root view to a VStack
doesn't fix the AsyncImage caching issue, and I actually managed to break the layout while doing this, oops.
List
instead, which properly supports cell reuse.Fixed in #33
Describe the bug After a post view loads an image, and user scrolls it out of view, the post view will reload that image when that post view's cell reappears.
To Reproduce Steps to reproduce the behavior:
Expected behavior
Information: Version 0.1 (1)