How to change color of back button on NavigationView

后端 未结 6 1589
情书的邮戳
情书的邮戳 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:20

    
    .navigationBarBackButtonHidden(true)
            .navigationBarItems(leading:
                    Button(action: {presentation.wrappedValue.dismiss()}, label: {
                        HStack {
                        Image(systemName: "chevron.backward")
                            .foregroundColor(Color(UIColor.darkGray))
                        Text(username)
                            .foregroundColor(Color(UIColor.darkGray))
                            .font(UIHelper.largeSize())
                        }
                    })
    

提交回复
热议问题