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

Improve Privacy Dashboard animation hitching #518

Merged
merged 1 commit into from
Apr 11, 2022

Conversation

samsymons
Copy link
Collaborator

Task/Issue URL: https://app.asana.com/0/1200835453786799/1202102930180367/f
Tech Design URL:
CC:

Description:

This PR improves the animation when displaying the Privacy Dashboard.

It does this by avoiding running the resize animation block during the popover's own animation. The approaches uses a new boolean to track whether or not to run the animation, but it would be nice to not even have to rely on that if anyone has a suggestion for a better approach.

Steps to test this PR:

  1. Open and close the Privacy Dashboard repeatedly
  2. Check that the dashboard's popover doesn't hitch during display

Testing checklist:

  • Test with Release configuration
  • Test proper deallocation of tabs
  • Make sure committed submodule changes are desired

Internal references:

Software Engineering Expectations
Technical Design Template
When ready for review, remember to post the PR in MM

@ayoy ayoy self-assigned this Apr 11, 2022
Copy link
Collaborator

@ayoy ayoy left a comment

Choose a reason for hiding this comment

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

LGTM! Looks much better now :)

I can't come up with a more native solution as NSViewController lacks handy APIs known from UIKit, such as isBeingPresented.

@samsymons
Copy link
Collaborator Author

@ayoy Exactly the problem I had, such an API was my first instinct here but as far as I can see as well, it doesn't exist. 😭

@samsymons samsymons merged commit c3df026 into develop Apr 11, 2022
@samsymons samsymons deleted the sam/improve-privacy-dashboard-animation-hitching branch April 11, 2022 14:54
samsymons added a commit that referenced this pull request Apr 14, 2022
# By Dominik Kapusta (4) and others
# Via GitHub
* develop:
  ‘Rename user-facing “Preferences” strings to “Settings”. (#519)
  Fix URLs with port and replace spaces in query with %20 (#506)
  Printing custom frame (#530)
  Fix warnings in unit tests target (#490)
  Version 0.22.3
  FTP scheme handled as internal (#524)
  Old compilation flag removed (#531)
  Don't use ZStack as it messes up the layout on Catalina (#532)
  Disable context menu for Privacy Dashboard (#512)
  Add unit tests Github Actions workflow (#525)
  Add a shell script and GitHub Action to create notarized builds (#517)
  Add missing period in 'Privacy, simplified.' tagline (#527)
  move some state into the model so that SwiftUI doesn't remember it if that object comes back (#521)
  Prevent the Autofill Cancel button from resetting item selection (#520)
  Fix animation hitching. (#518)
  Add description fields to breakage reporting flows (#511)
  Update BSK with a fix for query params (#513)
  set the default height of the navigation bar so that it can be used when configuring a popup window (#522)

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
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