title: Button, how to open a new View in swiftUI embedded in navigation bar
body: <p>I embedded a button on on the <code>NavigationBar</code>.
  I'm try to make button to open a new <code>View</code> called <code>DetailView</code></p>
  
  <p>I try to use <code>NavigationLink</code> but it does't work inside a button.</p>
  
  <pre><code>import SwiftUI
  
  struct ContentView: View {
  
      @ObservedObject var dm: DataManager
  
      @State var isAddPresented = false
      var body: some View {
          NavigationView {
              HStack {
                  List () {
                      ForEach (dm.storage) { data in
                          StileCella(dm2: data)
                      }
                  }
                  .navigationBarTitle("Lista Rubrica")
                  .navigationBarItems(trailing: Button(action: {
                          self.isAddPresented = true
                     // Load here the DetailView??? How??
                          DetailView()
                      }) {
                          Text("Button")
                      })
              }
          }
      }
  }
  
  
  
  struct DetailView: View {
  
      var body: some View {
          VStack(alignment: .center) {
              Text("CIAO").bold()
              Spacer()
              Image(systemName: "star")
                  .resizable()
          }
      }
  }
  </code></pre>