struct DetailView: View {
   @State private var appData = ApplicationData.shared

   var body: some View {
      List {
         ForEach(appData.foodList, id: \.self) { item in
            Text(item)
         }
      }
      .navigationTitle("Food List")
      #if os(macOS)
      .alternatingRowBackgrounds()
      #endif
   }
}