On your App Delegate you can set the new navigationBarAppearance. On scroll the navigation bar won't be transparent.
navigationBarAppearance.configureWithTransparentBackground()
navigationBarAppearance.titleTextAttributes = [.foregroundColor: UIColor.white]
navigationBarAppearance.backgroundColor = UIColor(named: "AccentColor")
UINavigationBar.appearance().standardAppearance = navigationBarAppearance
UINavigationBar.appearance().compactAppearance = navigationBarAppearance
UINavigationBar.appearance().scrollEdgeAppearance = navigationBarAppearance
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: