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
About screen: Disable haptics when app logos cell isn't visible #17686
Conversation
You can trigger an installable build for these changes by visiting CircleCI here. |
You can trigger optional UI/connected tests for these changes by visiting CircleCI here. |
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.
Hey @frosty , tested this on iPhone 12 Pro Max device with iOS 15.2; I noticed that the haptics do not pause when opening a modal with any web view from the about screen (Blog, Automattic Family and Work With Us). They correctly pause when offscreen or when navigating to legal and more.
Hmm you're right, it's not working in the case of modals like the webviews, because they don't trigger the willAppear / disappear view lifecycle methods. As I'm currently wrapping up for the holidays, I'd like to go ahead and merge this as-is for now (as it's still an improvement over what we had already) and I can see if there's anything we can do about the modals in a future update. Is that okay? |
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.
Hey @frosty , sure let's merge this one. Since it's not a blocker, we can open an issue for the haptic still happening when the modal web view shows up and treat it in a separate PR. Happy Holidays!!
This PR can be used to test the associated AutomatticAbout-Swift PR: Automattic/AutomatticAbout-Swift#4. It makes some changes to the haptics implementation in the about screen so that haptics are only active when the app logos cell on the new About screen is visible.
To test
Presenting new screens
Scrolling on and offscreen
AppAboutScreenConfiguration.swift
and add the following line about 10 times to the first sub-array in thesections
property (line 31) to pad out the top section in the screen with a lot of extra content:(this should go above the existing
AboutItem(title: TextContent.rateUs, action: { [weak self] context in
line)Regression Notes
None
N/A
PR submission checklist:
RELEASE-NOTES.txt
if necessary.