I caught this bug in iOS 15(RC).
Next code work for me.
override func viewDidLoad() {
super.viewDidLoad()
let barAppearance = UINavigationBarAppearance()
barAppearance.backgroundColor = .white
navigationBar.standardAppearance = barAppearance
navigationBar.scrollEdgeAppearance = barAppearance
}
Post
Replies
Boosts
Views
Activity
Hey! I had the same problem.
Decision: In the Xcode Project navigator, select your project file (blue Xcode icon, topmost in the tree).
In the editor that opens, ensure your app target is selected.
Select the “Build Phases” tab.
Pop open the “Link Binary With Libraries” section.
Click the + button under the list that appears.
Type “AdServices” into the search field of the popup sheet, select “AdServices.framework,” and click “Add.”
On the new row in the table, click the “Required” popup button in the last column.
Change the value to “Optional.”
Thanks to this solution - https://developer.apple.com/forums/thread/126506