reddit-swiftui
reddit-swiftui copied to clipboard
Blue Selection trigged when List (Blur) Selection expected
NavigationLink and List selection state seem to be overlapping.
There are two ways this happens:
-
- select a post
- see the post now has a grey selected background
- tap section header
- see the selected post now has a blue selected background
- all consecutive selections will have a blue background as well
- Click on the edge of the list item (outside the text or images)
Perhaps make the click area fill the space so that clicking on the edge won't cause a selection.
@carson-katri Is this the issue you described? Seems like highlighting is stuck on first selection on the List I make and subsequent selections of topics aren't highlighted as seen.
Can you please suggest any starting point to look into this issue, I will try fixing this.
@Nikhil0487 I'd start in PostList.swift. There you'll see the code that handles the selection state for both NavigationLink and List. I believe the issue is that they both have selection states independent from one another, which is leading to issues with both.