title: Remove back button text from navigationbar in SwiftUI
body: <p>I've recently started working in SwiftUI, came to the conclusion that working with navigation isn't really great yet. What I'm trying to achieve is the following. I finally managed to get rid of the translucent background without making the application crash, but now I ran into the next issue. How can I get rid of the "back" text inside the navbaritem?</p>
  
  <p><a href="https://i.stack.imgur.com/4nLt0.png" rel="noreferrer"><img src="https://i.stack.imgur.com/4nLt0.png" alt="enter image description here"></a></p>
  
  <p>I achieved the view above by setting the default appearance in the <code>SceneDelegate.swift</code> file like this.</p>
  
  <pre><code>let newNavAppearance = UINavigationBarAppearance()
  newNavAppearance.configureWithTransparentBackground()
  newNavAppearance.setBackIndicatorImage(UIImage(named: "backButton"), transitionMaskImage: UIImage(named: "backButton"))
  newNavAppearance.titleTextAttributes = [
      .font: UIFont(name: GTWalsheim.bold.name, size: 18)!,
      .backgroundColor: UIColor.white
  
  ]
  
  UINavigationBar.appearance().standardAppearance = newNavAppearance
  </code></pre>
  
  <p>One possible way that I could achieve this is by overriding the navigation bar items, however this has one downside (<a href="https://stackoverflow.com/questions/58906365/swiftui-custom-back-button-text-for-navigationview">SwiftUI Custom Back Button Text for NavigationView</a>) as the creator of this issue already said, the back gesture stops working after you override the navigation bar items. With that I'm also wondering how I could set the foregroundColor of the back button. It now has the default blue color, however I'd like to overwrite this with another color.</p>