Skip to content

Commit

Permalink
Disable NTP animation when toggling Privacy Feed (#3460)
Browse files Browse the repository at this point in the history
Task/Issue URL: https://app.asana.com/0/0/1208626779582462/f

Description:
This is to avoid weird implicit animation of the NTP layout.
  • Loading branch information
ayoy authored Oct 25, 2024
1 parent 584398f commit 1316e46
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions DuckDuckGo/HomePage/View/HomePageView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ extension HomePage.Views {
scrollOffsetReader
}
}
.animation(.none, value: recentlyVisitedModel.showRecentlyVisited)
.coordinateSpace(name: Const.scrollViewCoordinateSpaceName)
.onPreferenceChange(ScrollOffsetPreferenceKey.self, perform: hideSuggestionWindowIfScrolled)
.if(addressBarModel.shouldShowAddressBar) { view in
Expand Down

0 comments on commit 1316e46

Please sign in to comment.