Über Camille Mainz

Camille arbeitet seit zwei Jahren bei Mayflower als Softwareentwickler. Wenn er nicht gerade an seinem Schlagzeug sitzt, programmiert er gerne für diverse Apple-Plattformen und hat auch schon die eine oder andere App veröffentlicht. Ansonsten beschäftigt er sich bei Mayflower mit Modernisierung, CI/CD und Java-Entwicklung.

Async/Await in Swift 5.5

With Swift 5.5, the Swift programming language gains a powerful new set of tools for making asynchronous code easier to read, write, and debug. Similar to other languages (e.g., Python, C#), the async/await pattern is added and used plentifully throughout Swift’s standard library.

In this article, I am going to introduce the basics of async/await in Swift 5.5. Also, I will dive in further by looking at how to write asynchronous code in a structured way. Last but not least, we will explore how async/await integrates with SwiftUI and how you can update your existing code to make use of async/await.

Note: Using async/await requires Xcode 13 and is supported by iOS/iPadOS 15, macOS 12 and watchOS 8 (or later).

Weiterlesen