NavgationController の NavigationBar の色を変えるのは以下の通りですが、
ViewDidLoad で呼ぶと変わらないことがあるので、 ViewWillAppear で呼ぶと変わります。
navigationController?.navigationBar.barTintColor = .black // 背景色
navigationController?.navigationBar.tintColor = .white // 戻るボタンなど
navigationController?.navigationBar.titleTextAttributes = [.foregroundColor: UIColor.white] // タイトル
// ViewWillAppear で呼びましょう🐥
🐣
フリーランスエンジニアです。
お仕事のご相談こちらまで
rockyshikoku@gmail.com
Core MLを使ったアプリを作っています。
機械学習関連の情報を発信しています。