Skip to content
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

added pop-up tip for feed customization #101 #1715

Merged
merged 2 commits into from
Dec 30, 2024
Merged

Conversation

bryanmontz
Copy link
Contributor

@bryanmontz bryanmontz commented Dec 30, 2024

Issues covered

https://github.com/verse-pbc/issues/issues/101

Description

Added a custom pop-up tooltip view for feed customization.

Unfortunately, I wasn't able to use TipKit for this because currently you cannot fully style popover tips from TipKit. There is something called TipViewStyle that you can use to get close, but the little triangle that's part of the tip cannot be styled in iOS 17/18 in SwiftUI. Reference: https://forums.developer.apple.com/forums/thread/742107

So this is a custom implementation. I was reluctant to do this, and I'm still not 100% confident that we want to go this route, because it is a bit hacky and will require more maintenance than a TipKit solution would.

Bob_s_Phone_and_Plur_Nos_work_•_Untitled-14_and_bryanmontz_work___Development_Projects_nos

Tooltip shows up when user scrolls a couple screen-lengths down (before 30 seconds has passed):
feed-popup

@bryanmontz bryanmontz merged commit 1f2a210 into feature/lists-ui Dec 30, 2024
4 checks passed
@bryanmontz bryanmontz deleted the bdm/feed-tip branch December 30, 2024 16:53
@joshuatbrown
Copy link
Contributor

I wish TipKit would just allow enough customization...

@bryanmontz
Copy link
Contributor Author

I know. So frustrating. You actually can style the popover tips using .tipViewStyle, but it doesn't apply to the little triangle part of the tip view, so it looks ugly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants