0

How to change UINavigationController navigationBar backgroundColor with default animation in specific viewController.
Every question that i find in the web was without animation.

Similar question here How to change the color of navigation bar on a specific view but this post answers only change the navigationBar background color without animation.

The video for linkedIn iOS Application which did this behavior.

Mohammad Reza Koohkan
  • 1,656
  • 1
  • 16
  • 36
  • UIView.animate(withDuration: 1, animations: { self.navigationBar.backgroundView.backgroundColor = UIColor.red }). – Faheem Rahman Dec 30 '19 at 13:14
  • 1
    @FaheemRahman this method only change the color with animation, i wanted to know how to change the color with swipe transition amount, i think the answer is around UIViewPropertyAnimator and how much UINavigationController did swipe... – Mohammad Reza Koohkan Dec 31 '19 at 07:05

0 Answers0