Engineering and Technology
Learn how to prevent background operations from interfering with an app's UI by implementing Apple's GCD framework.
In the course Grand Central Dispatch (GCD), you will delve into the world of closures in Swift and explore their properties that were not covered in our previous Swift Syntax course. Additionally, you will learn about Apple's open source library, Grand Central Dispatch, and how it enables you to send tasks to both the background and foreground. You will discover what can be sent to the background and what needs to run in the foreground. Through a sample app, you will create a simple application that downloads large images, effectively blocking the user interface. You will explore two different ways to send this lengthy network task to the background and also learn how to run closures in the background. Furthermore, you will gain the skills to design methods that incorporate completion closures.