Swift Language

Swift Language

@swift.org

Swift is a general-purpose programming language that's fast, modern, safe, and a joy to write. Designed for all, developed in the open.

3K followers0 following113 posts

Swift 6.4.1 is out now! ⚙️ This maintenance release improves compiler stability, enhances dependency resolution in Swift Package Manager, and includes fixes for Foundation and Swift Testing. More here: forums.swift.org/t/announcing...

forums.swift.orgAnnouncing Swift 6.4.1Announcing Swift 6.4.1 We are happy to announce the release of Swift 6.4.1. Install Swift Toolchain Install via Swiftly swiftly install 6.4.1 or swiftly install latest Download toolchain directly f...

✨ Simpler syntax for optionals like “some” and “any” 🛠️ Swift Build now the default in SwiftPM — same build on Linux/macOS/Windows 📦 Subprocess reaches 1.0 🌐 Wasm bridging via JavaScriptKit up to 40x faster 🔗 C++20 std::span interoperability 🔒 Faster code, still memory-safe

How does the debugger know exactly which Swift module your code came from? The upcoming Swift 6.4 release makes it more precise than ever, tracking the module path in debug info instead of looking it up by name, for faster and more reliable debugging. www.swift.org/blog/module-...

swift.orgModule Tracking in Swift Debug InfoWhen your Swift program hits a breakpoint and stops so you can inspect it, the debugger’s expression evaluator has to find the exact Swift module your code was built from. Until now, that lookup wasn’...

At last: a unified home for Swift documentation, pulling together the language reference, core libraries and tooling, and platform specifics into a single central home, no matter what you're building! Check it out and give us feedback: docs.swift.org

Circleback didn't port an app to Swift, instead using it as a portable systems layer that provides the connective tissue between an Electron UI and some underlying platform dependencies (ScreenCaptureKit on macOS, libobs on Windows). Interesting approach: circleback.ai/blog/how-we-...

circleback.aiHow we rebuilt our Electron recording engine in Swift - CirclebackHow we moved our Electron app's recording engine from the render process to native Swift, bridging ScreenCaptureKit and libobs to React with a Combine-to-Jotai tool.

Embedded Swift is a subset of Swift built for tiny, constrained hardware, with far smaller binaries while keeping the language you already know. Swift 6.4 brings it closer to full Swift than ever, supporting "any" types, untyped throws, and metatypes. www.swift.org/blog/embedde...

swift.orgEmbedded Swift Improvements Coming in Swift 6.4Embedded Swift is a subset of Swift that’s designed for low resource usage, making it capable of running on constrained environments like microcontrollers. Using a special compilation mode, Embedded S...

Memory-safe. 13% faster on average. ⚡️ The TrueType hinting interpreter in macOS and iOS has been rewritten in Swift, replacing the original C implementation. Pixel-perfect accuracy was validated across 27 million glyphs. And the results: www.swift.org/blog/migrati...

A unified networking stack for Swift, layered from low-level I/O primitives, through common protocols, to a modern HTTP client and server API. ⚙️ That's what the new Networking workgroup is building. Interested in contributing? Join us: www.swift.org/blog/announc...

swift.orgAnnouncing the Networking WorkgroupThe Swift Ecosystem Steering Group is excited to announce the creation of the Networking workgroup! Workgroups are community-led efforts, formally recognized by the project, to advance key areas of Sw...

When you draw a stroke in Goodnotes on the web, you get the exact same curves and ink flow as on iPad, because it’s literally the same Swift code running on both. ✍️ Goodnotes engineer Yuta Saito shares how they built it with Swift and WebAssembly: www.swift.org/blog/bringin...

🆕 The Swift extension is now live on the Open VSX Registry, enabling first-class Swift support in Cursor, VSCodium, AWS Kiro, and Google Antigravity. That means code completion, refactoring, debugging, testing, and DocC support, wherever you code.🧑‍💻https://swift.org/blog/expanding-swift-ide-support/

Swift Language reposted

Adding to that, here's a small wrap-up post about the pre #fosdem Swift Community Event, including the long awaited group pic! :-) forums.swift.org/t/wrapping-u... Thank you everyone for joining us! #swiftlang

Swift/JS interop used to mean "JSObject", "JSValue", and runtime surprises. BridgeJS changes that: annotate your Swift, get typed glue code in both directions. Compile-time safe. Zero manual boilerplate. 🧵

View full thread

Bridging options: 1. Annotate a Swift class or type with @​JS to create bindings for JS/TS code 2. Import an existing JavaScript class or function with @​JSClass or @​JSFunction on the Swift side 3. Or create a bridge-js.d.ts file to export TypeScript APIs to Swift

Swift/JS interop used to mean "JSObject", "JSValue", and runtime surprises. BridgeJS changes that: annotate your Swift, get typed glue code in both directions. Compile-time safe. Zero manual boilerplate. 🧵

Left side: Swift types with @​JS annotation. Right side: fully generated TypeScript interfaces and exports. You write @​JS. BridgeJS writes everything else.

📐Announcing Swift System Metrics 1.0! 🎉 A stable API for process-level monitoring on Linux and macOS. Add it to your service in a few lines, plug into Prometheus or OTel, and start visualizing in Grafana. Contributions welcome! www.swift.org/blog/swift-s...

Swift Language reposted

The @swift.org team is demonstrating a level of consistency that makes me believe they really want to see the Swift programming language thrive outside of the Apple ecosystem.

Swift Language@swift.org

Windows developers, you're invited! 🪟 We just launched a Windows workgroup to make Swift even better on Windows: improving the toolchain, core packages, API bridging, and deployment experiences. Curious? Interested in contributing? You're welcome here. 👉 swift.org/blog/announcing-windows-workgroup/

Your favorite C library, now with Swift superpowers. 🦸 New post: how to transform C APIs into idiomatic Swift, with enums, automatic reference counting, and argument-labeled methods. Best of all: no header changes needed, thanks to API notes! 🥳 www.swift.org/blog/improvi...

swift.orgImproving the usability of C libraries in SwiftThere are many interesting, useful, and fun C libraries in the software ecosystem. While one could go and rewrite these libraries in Swift, usually there is no need, because Swift provides direct inte...