How to change color of back button on NavigationView

后端 未结 6 1590
情书的邮戳
情书的邮戳 2021-01-02 04:56

When you click on the button it takes you to a new view and puts a back button in the top left. I can\'t figure out what property controls the color of the back button. I tr

6条回答
  •  走了就别回头了
    2021-01-02 05:23

    I was trying to do the same for a while, and do not think there is SwiftUI solution yet. One of things that will get work done though (if it works for your use case) is UIKit's appearance:

    UINavigationBar.appearance().tintColor = .black

提交回复
热议问题