How to change navigationBar background color locally

前端 未结 0 462
走了就别回头了
走了就别回头了 2020-12-22 14:02

I tried this method but it is global which is undesired.

struct ExperienceView: View {  

    init() {
        UINavigationBar.appearance().barTintColor = #co         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题