.task {
   let imageURL = Bundle.main.url(forResource: "invoice", withExtension: "png")
   if let imageURL = imageURL {
      do {
         let request = RecognizeDocumentsRequest()
         let result = try await request.perform(on: imageURL)

         var text = ""
         if let document = result.first?.document {
            if let list = document.lists.first {
               for item in list.items {
                  text += "\(item.markerString) \(item.itemString)\n"
               }
            }
         }
         textFound = text
      } catch {
         print("Error performing the request: \(error)")
      }
   }
}