Skip to content

Commit

Permalink
don't animate sub views
Browse files Browse the repository at this point in the history
  • Loading branch information
brindy committed Oct 10, 2023
1 parent 7d85de3 commit cda7fcd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion DuckDuckGo/MainViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,10 @@ class MainViewController: UIViewController {
let frame = self.findInPageView.frame
UIView.animate(withDuration: duration, delay: 0, options: animationCurve, animations: {
self.findInPageView.frame = CGRect(x: 0, y: y - frame.height, width: frame.width, height: frame.height)
self.view.layoutSubviews()
self.viewCoordinator.superview.layoutIfNeeded()
}, completion: nil)

self.viewCoordinator.navigationBarContainer.layoutSubviews()
}

private func initTabButton() {
Expand Down

0 comments on commit cda7fcd

Please sign in to comment.