There was an error while loading. Please reload this page.
2 parents 7668408 + ca8b765 commit cb0ff93Copy full SHA for cb0ff93
1 file changed
Example/nRFBlinky/ViewControllers/BlinkyView/BlinkyViewController.swift
@@ -259,8 +259,11 @@ private extension BlinkyViewController {
259
} else {
260
color = UIColor.dynamicColor(light: .nordicRed, dark: .nordicRedDark)
261
}
262
- navigationBar?.standardAppearance.titleTextAttributes = [.foregroundColor: color]
263
- navigationBar?.standardAppearance.largeTitleTextAttributes = [.foregroundColor: color]
+ let navBarAppearance = UINavigationBarAppearance()
+ navBarAppearance.titleTextAttributes = [.foregroundColor: color]
264
+ navBarAppearance.largeTitleTextAttributes = [.foregroundColor: color]
265
+ navigationBar?.standardAppearance = navBarAppearance
266
+ navigationBar?.scrollEdgeAppearance = navBarAppearance
267
268
let color: UIColor
269
if connected {
0 commit comments