This Xcode 9 project demonstrates concurrency in iOS using Grand Central Dispatch (GCD) and compares concurrent (asynchronous) queues and serial (synchronous) queues.
This Xcode 9 project demonstrates concurrency in iOS using Grand Central Dispatch (GCD) and compares concurrent (asynchronous) queues and serial (synchronous) queues.
The Swift language migration wizard was used to convert this project to Swift 4. (In Xcode, see the “Edit” menu -> “Convert” -> “To Current Swift Syntax…”). The original project was created in Xcode 8.2.1 with Swift 3.
Here’s this app in action:
To get this project running on the Simulator or a physical device (iPhone, iPad), go to the following locations in Xcode and make the suggested changes: