NOTICE:Makerlog v4 Beta is currently being developed. You can follow the progress by following Makerlog, and read the roadmap here.

How do make a synchronous call in swift?

  1. Do not use swift promises library  2. Do not use Alamofire library    Here’s what I want to do:    I want to fetch data from api synchronously so that the tableview renders only when I have the complete data. If the call is asynchronous, multiple tableview reloads have to happen and that’s bad. I tried doing a semaphore with dispatch queue but it didn’t work. Any help is greatly appreciated.

Join the conversation

Sign in to post a reply and interact with thousands of makers.

2 replies

Loading replies...

Where makers learn, build, and grow in public.

© Nifty Development, LLC