Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • Why are you using a loop in the first place? You seem to return from the function after inspecting the very first item in the array, or you throw an error. Either way, you don't seem to have any intention of going to the second element, ever. Commented Jun 30, 2021 at 12:06
  • @Sweeper i want to return the array of images, i was returning first image for demo purpose. updated my question. What i want to understand is how to apply async sequence on a common scenario different from provided by apple in WWDC. Commented Jun 30, 2021 at 13:37
  • @RajaKishan no removing try doesnt help get rid of those errors. Commented Jun 30, 2021 at 13:38