title: How can I place a circular progressView in a navigationBar with swiftui?
body: <p>I have a swiftUI project and I want to place a circular progressView in the navigation bar doing the following:</p>
  <pre><code>.toolbar {
      ToolbarItem(placement: ToolbarItemPlacement.navigationBarTrailing) {
          Button {
              // some action
          } label: {
              HStack {
                  ProgressView()
                      .frame(width: 20, height: 20)
                      .progressViewStyle(CircularProgressViewStyle())
                  Text(&quot;Save Edits&quot;)
              }
              
          }
      }
  }
  </code></pre>
  <p>The &quot;Save Edits&quot; appears but the progressView does not.  I'm guessing SwiftUI only allows text or images in the navigationBar as a toolbarItem.  Was wondering if there is any other approach to get the circular progressView in the navigationBar.  I see this in many apps that want to let the user know something is happening when they press the navigation bar button.</p>