Swiftui, iOS App Development, iOS Development, Mobile App Development, Swift.
VStack(alignment: .leading) { if firstSelectedDataItem != nil { Text("Previously Selected Item: \(firstSelectedDataItem!.text)") } List(SampleData.secondScreenData, selection: $secondSelectedDataItem) { item in NavigationLink(item.text, value: item) } .navigationTitle("Content") }.padding() }