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

Ensure welcome screen shown before menu popover tip #411

Merged
merged 1 commit into from
Jan 4, 2024

Conversation

cselin
Copy link
Collaborator

@cselin cselin commented Jan 3, 2024

Fixes the issue where menu popover tip prevents welcome screen from showing first time app is opened.

RPReplay_Final1704300154.mov

Note:
In this fix, we do not show the menu popover tip the first time the app is launched if the welcome screen is shown, but it will be shown subsequent app launches. I had another implementation that showed the tooltip after the welcome screen is shown, but it was buggy and often was delayed and sometimes even showed up on the detail screen when the menu isn't even available.

@cselin cselin linked an issue Jan 3, 2024 that may be closed by this pull request
@cselin cselin requested a review from nickoneill January 3, 2024 16:50
{
if #available(iOS 17, *) {
if showingWelcomeScreen {
AnyView(self)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I spent a good hour trying to debug this method. If I kept the return's, it compiled, but crashed without a helpful debug message which took me a while to track down. Adding AnyView seems to be required once I introduced the additional conditional 🤷🏻‍♂️

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ran into this before but didn't figure out how to get it working, AnyView to the rescue!

{
if #available(iOS 17, *) {
if showingWelcomeScreen {
AnyView(self)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ran into this before but didn't figure out how to get it working, AnyView to the rescue!

@cselin cselin merged commit e64c810 into main Jan 4, 2024
1 check passed
@cselin cselin deleted the cselin/fix-tipkit-welcome-screen-issue branch January 4, 2024 14:47
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.

Tipkit prevents Welcome screen from opening
2 participants