DispatchGroups to group API calls in Swift
Need to make multiple network calls for your ViewController? We can use DispatchGroup, and this article explains why.

Basically you can add work to a group, which then can be executed asynchronously than you can run a closure once they are finished.