Targets · Swift · Capabilities

Capabilities

Which high-level features a Program can use when it renders to Swift and runs on Apple platforms — iOS, macOS, and the rest of the family.

Contents

How a Program becomes Swift, in parts. Start with the introduction, then follow each part into the rendered output and the runtime it links against.

What Apple platforms can do

Swift on Apple platforms is a full native application stack. The reactive core is host-agnostic; the drivers decide what a program can reach, and nearly everything is available through a system framework.

FeatureStatusHow
User interfaceBuilt inThe interface driver renders Ui as SwiftUI views; a custom component returns an AnyView.
NetworkingBuilt inNetwork uses URLSession and URLSessionWebSocketTask.
AsynchronyBuilt inA LOCKED state models an in-flight value; the driver resolves it from a Task and re-enters the cycle.
AnimationBuilt inThe Animate driver shares one CADisplayLink.
Storage & filesBuilt inStorage maps to FileManager and UserDefaults.
GraphicsBuilt inSwiftUI Canvas / Core Graphics through a custom interface component or the Graphics driver.
Location & mapsBuilt inLocation uses Core Location; a map is a custom component backed by MapKit.
Background workBuilt inSwift concurrency (Task, actors) behind a native module; reactive state stays on the main cycle.
ReachApple onlyiOS, macOS, watchOS and tvOS — not Android or the web. Use Dart or JavaScript for those.

Where a capability needs host code it arrives as a NATIVE Swift function or a driver — see native modules and drivers.