'Customize UINavigationBar.appearance() on ScrollViewDidScroll?

Is it still possible to customize the navigation bar on ScrollViewDidScroll now?

For example:

1



Solution 1:[1]

Change it using:

self.navigationController?.navigationBar.isTranslucent = False

And remove:

self.navigationController?.navigationBar.setBackgroundImage...
self.navigationController?.navigationBar.shadowImage = UIImage()

Then modify the barTintColor when user scrolls.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Sagar Ali