struct DetailView: View {
   @State private var text = ""
   let listSuggestions = ["Red", "Green", "Blue"]

   var body: some View {
      VStack {
         TextField("Insert Text", text: $text)
            .textFieldStyle(.roundedBorder)
            #if os(macOS)
            .textInputSuggestions({
               ForEach(listSuggestions, id: \.self) { suggestion in
                  Text(suggestion)
                     .textInputCompletion(suggestion)
               }
            })
            #endif
         Spacer()
      }.padding()
   }
}