title: Swiftui navigationLink macOS default/selected state
body: <p>I build a macOS app in swiftui </p>
  
  <p>i try to create a listview where the first item is preselected. i tried it with the 'selected' state of the navigationLink but it didn't work. </p>
  
  <p>Im pretty much clueless and hope you guys can help me.</p>
  
  <p>The code for creating this list view looks like this. </p>
  
  <pre><code>//personList
  struct PersonList: View {
      var body: some View {
            NavigationView
            {
              List(personData) { person in
                  NavigationLink(destination: PersonDetail(person: person))
                  {
                      PersonRow(person: person)
                  }
              }.frame(minWidth: 300, maxWidth: 300)
            }
      }
  }
  </code></pre>
  
  <p>(Other views at the bottom)</p>
  
  <p>This is the normal View when i open the app.
  <a href="https://i.stack.imgur.com/AEBXB.png" rel="noreferrer"><img src="https://i.stack.imgur.com/AEBXB.png" alt="appnormalstate"></a>
  When i click on an item its open like this. <strong>Thats the state i want as default opening state when i render this view.</strong>
  <a href="https://i.stack.imgur.com/G3BhD.png" rel="noreferrer"><img src="https://i.stack.imgur.com/G3BhD.png" alt="appwantedstate"></a></p>
  
  <p>The Code for this view looks like this:</p>
  
  <pre><code>//PersonRow
  
  struct PersonRow: View {
  
      //variables definied
      var person: Person
  
      var body: some View {
  
          HStack
          {
              person.image.resizable().frame(width:50, height:50)
                  .cornerRadius(25)
                  .padding(5)
  
              VStack (alignment: .leading)
              {
                  Text(person.firstName + " " + person.lastName)
                      .fontWeight(.bold)
                      .padding(5)
                  Text(person.nickname)
                      .padding(5)
              }
              Spacer()
          }
      }
  }
  
  
  //personDetail
  
  struct PersonDetail: View {
  
      var person : Person
  
      var body: some View {
  
          VStack
          {
                HStack
                {
                  VStack
                  {
                      CircleImage(image: person.image)
                      Text(person.firstName + " " + person.lastName)
                        .font(.title)
                      Text("Turtle Rock")
                        .font(.subheadline)
                  }
                  Spacer()
                  Text("Subtitle")
                    .font(.subheadline)
              }
              Spacer()
          }
          .padding()
      }
  }
  </code></pre>
  
  <p><em>Thanks in advance!</em></p>