flowerchecker / plant-id-examples

Example client's code for work with Plant.id identification API in various languages
MIT License
127 stars 44 forks source link

Added Swift Example #29

Closed zane-carter closed 2 years ago

zane-carter commented 2 years ago

@Krejdom

Krejdom commented 2 years ago

Thank you!

Alan052918 commented 2 years ago

@zane-carter Hi, I'm having some trouble running this Swift example. I'm testing on macOS 12.3 and Xcode 13.3.

The project built successfully but seemed to preemptively exited and printed nothing in the console. I'm new to the async/await URLSession stuff and there are a several try! disabling error propagations. I couldn't reach the breakpoints inside the Task block and in async functions as they were supposedly running on another thread than the main thread.

Could you please provide some explanations on how to build and run this example? Much appreciated.