自分が設定に少し手間取ったので、メモとして残します。色々と調べた結果をまとめ、汎用化コードを設計。 これさえあれば、ナビゲーションバーのデザインは完璧。 関数の準備 func setupNavigationBar() { let appearance = UINavigationBarAppearance() appearance.configureWithOpaqueBackground() // 背景色 appearance.backgroundColor = UIColor(red: 33/255, green: 73/255, blue: 125/255, alpha: 1) // タイトル文字色 appearance.titleTextAttributes = [.foregroundColor: UIColor.white] UINavigationBar.appearance