-
Notifications
You must be signed in to change notification settings - Fork 14
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
Fix Search bar disappearing on Discover tab when scrolling #1680
Conversation
👀 |
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 seeing a few minor issues here:
- Typing a query then tapping clear sometimes results in the loading view being displayed instead of featured authors
- I think the gap between the magnifying glass and placeholder text is too large
- The font in the search bar doesn't look the same as the one in Figma.
I'm going to take a crack at fixing these since I think you are offline. - font for query
I fixed up the fonts. I ended up using the |
) | ||
) | ||
.placeholder(when: $text.wrappedValue.isEmpty, placeholder: { | ||
Text(placeholder) |
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.
Waawu, I didn't know this was existing. This is great @mplorentz
I love the new approach and I feel it is cleaner. We should change the other place where the modifier was used after the launch. Thanks for fixing this @mplorentz. |
Issues covered
#1679
Description
This PR fixes the Search bar disappearing on Discover tab when scrolling. This is fixed by using the custom
SearchBar
instead of Apple's.isSearchable
modifier.How to test
Screenshots/Video