Skip to content

Glossary: SwiftUI

URLSession

Also written: URLSession.shared, URLRequest

The part of Foundation that talks to web servers. `URLSession.shared.data(from:)` sends a request and waits, without freezing the app, for the reply.

Where the book teaches it

Related terms

async / awaitDataHTTP status codes