ios-swift-concurrency

Installation
SKILL.md

iOS - Swift Concurrency

Modern concurrency patterns using async/await, actors, and structured concurrency in Swift.

Key Concepts

Async/Await Fundamentals

// Async function declaration
func fetchUser(id: String) async throws -> User {
    let url = URL(string: "https://api.example.com/users/\(id)")!
    let (data, response) = try await URLSession.shared.data(from: url)

    guard let httpResponse = response as? HTTPURLResponse,
          httpResponse.statusCode == 200 else {
        throw APIError.invalidResponse
    }
Related skills
Installs
30
GitHub Stars
152
First Seen
Jan 22, 2026