planetary-social / nos

nos.social social media for all of us, using nostr
https://nos.social
Mozilla Public License 2.0
119 stars 14 forks source link

Buttons inside sheets change to red after swiping through, but not tapping to #1064

Open martindsq opened 4 months ago

martindsq commented 4 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to Profile
  2. Tap on the three dots
  3. Swipe through the options without tapping them, either in the simulator or an actual device
  4. See all options turned permanently to red

Expected behavior The buttons should return to their former colors.

Screenshots or Video https://github.com/planetary-social/nos/assets/1703242/c5a51d9d-4435-4c9c-b038-c953d5cb51d9

Technical info (please complete the following information):

Additional context We initially thought it was due to a destructive action we had in one sheet, but it happens in all of them. I don't think it is a destructive red, but it seems to me that the "active" or "selected" state of the buttons are set somewhere or are buggy in swiftui. We could create a new project and find out. Also, the dark mode could be interacting with that.

bryanmontz commented 1 month ago

This issue reproduces on iOS 17.5 and 18.0 simulators.

I tried a small test project and the issue did NOT reproduce there.

bryanmontz commented 1 month ago

Here is a relevant page from the Apple Developer Forums:
https://forums.developer.apple.com/forums/thread/673147

joshuatbrown commented 4 weeks ago

@setch-l Reopening and putting into QA since this will be in the 0.1.25 build.