📜  导航标题栏颜色 swftui - Swift 代码示例

📅  最后修改于: 2022-03-11 15:01:01.099000             🧑  作者: Mango

代码示例1
init() {
            let navBarAppearance = UINavigationBar.appearance()
            navBarAppearance.largeTitleTextAttributes = [.foregroundColor: UIColor.white]
            navBarAppearance.titleTextAttributes = [.foregroundColor: UIColor.white]
          }