REPL Support for Swift Packages

The swift run command has a new --repl option which launches the Swift REPL with support for importing library targets of a package.

Read more...

How Mirror Works

Swift places a lot of emphasis on static typing, but it also supports rich metadata about types, which allows code to inspect and manipulate arbitrary values at runtime. This is exposed to Swift programmers through the Mirror API. One might wonder, how does something like Mirror work in a language with so much emphasis on static types? Let’s take a look!

Read more...

Swift 5.0 Release Process

This post describes the goals, release process, and estimated schedule for Swift 5.0.

Read more...

Swift 4.2 Released!

Swift 4.2 is now officially released! Swift 4.2 builds on the strengths of Swift 4, delivering faster compile times, improving the debugging experience, updating the standard library, and converging on binary compatibility.

Read more...

Introducing Related Projects to Swift Forums

The Swift community is growing and Swift Forums are growing with it.

Read more...

Swift Community-Hosted Continuous Integration

We are delighted to announce a significant expansion of our Swift.org continuous integration testing system. Members of the Swift community have been hard at work to support Swift on a number of new platforms, and we have extended the Swift CI system to support community-hosted nodes for testing additional platforms.

Read more...

Reimplementation of Implicitly Unwrapped Optionals

A new implementation of implicitly unwrapped optionals (IUOs) landed in the Swift compiler earlier this year and is available to try in recent Swift snapshots. This completes the implementation of SE-0054 - Abolish ImplicitlyUnwrappedOptional Type. This is an important change to the language that eliminated some inconsistencies in type checking and clarified the rule of how these values are to be treated so that it is consistent and easy to reason about. For more information, see the motivation section of that proposal.

Read more...

Swift 4.1 Released!

Swift 4.1 is now officially released! It contains updates to the core language, including more support for generics, new build options, as well as minor enhancements to Swift Package Manager and Foundation. There was also significant progress made in stabilizing the ABI.

Read more...

Swift 4.2 Release Process

This post describes the goals, release process, and estimated schedule for Swift 4.2.

Read more...

Code Size Optimization Mode in Swift 4.1

In Swift 4.1 the compiler now supports a new optimization mode which enables dedicated optimizations to reduce code size.

Read more...

Swift Forums Now Open!

We are delighted to announce that the Swift project has completed the process of migrating to the Swift Forums as the primary method for discussion and communication! The former mailing lists have been shut down and archived, and all mailing list content has been imported into the new forum system.

Read more...

Conditional Conformance in the Standard Library

The Swift 4.1 compiler brings the next phase of improvements from the roadmap for generics: conditional conformances.

Read more...

Swift 4.1 Release Process

This post describes the goals, release process, and estimated schedule for Swift 4.1.

Read more...

Xcode 9.1 Improves Display of Fatal Errors

Swift has language constructs that allow you to specify your program’s expectations. If these expectations are not met at runtime, the program will be terminated. For example, indexing into an array implicitly expresses an expectation that the index is in bounds:

Read more...

Dictionary and Set Improvements in Swift 4.0

In the latest release of Swift, dictionaries and sets gain a number of new methods and initializers that make common tasks easier than ever. Operations like grouping, filtering, and transforming values can now be performed in a single step, letting you write more expressive and efficient code.

Read more...

Swift 4.0 Released!

Swift 4 is now officially released! Swift 4 builds on the strengths of Swift 3, delivering greater robustness and stability, providing source code compatibility with Swift 3, making improvements to the standard library, and adding features like archival and serialization.

Read more...

Swift Local Refactoring

Xcode 9 includes a brand new refactoring engine. It can transform code locally within a single Swift source file, or globally, such as renaming a method or property that occurs in multiple files and even different languages. The logic behind local refactorings is implemented entirely in the compiler and SourceKit, and is now open source in the swift repository. Therefore, any Swift enthusiast can contribute refactoring actions to the language. This post discusses how a simple refactoring can be implemented and surfaced in Xcode.

Read more...

Swift Package Manager Manifest API Redesign

The Package Manager in Swift 4 includes the redesigned Package.swift manifest API. The new API is easier to use and follows the design guidelines. The target inference rules in Swift 3 Package Manager were a common source of confusion. We revised these rules and removed most of the inference, favoring the practice of explicitly specifying package structure in the manifest.

Read more...

Swift Source Compatibility Test Suite Now Available

We are pleased to announce the release of a new Swift source compatibility test suite as part of the effort to maintain source compatibility in future Swift releases.

Read more...

Swift 3.1 Released!

Swift 3.1 is now officially released! Swift 3.1 is a minor release that contains improvements and refinements to the Standard Library. Thanks to efforts by IBM and other members of the community, it also includes many updates to the Linux implementation of Swift. There are also a number of updates to Swift Package Manager.

Read more...

Swift 4 Release Process

This post describes the goals, release process, and estimated schedule for Swift 4.

Read more...

Faster Mix-and-Match Builds with Precompiled Bridging Headers

An examination of build times of Xcode projects that mix Objective-C and Swift, which can contain large bridging headers, shows that the Swift compiler spends a lot of time re-processing the same bridging headers for all the Swift files in a project. In certain projects, each additional Swift file increases the overall build time noticeably, even when the Swift file is quite modest.

Read more...

Swift Evolution Status Page Now Available

We’re pleased to announce the release of the new Swift Evolution status page as a one-stop destination for information about proposed changes to Swift.

Read more...

Swift 3.1 Release Process

This post describes the goals, release process, and estimated schedule for Swift 3.1.

Read more...

Server APIs Work Group

Since Swift became available on Linux there has been a huge amount of interest in using Swift on the server, resulting in the emergence of a number of Web Frameworks, including Kitura, Vapor, Perfect, and Zewo, along with many others. As an important part of the Swift ecosystem, and one that we are keen to foster, we are today announcing the formation of the Server APIs work group.

Read more...

Whole-Module Optimization in Swift 3

Whole-module optimization is an optimization mode of the Swift compiler. The performance win of whole-module optimization heavily depends on the project, but it can be up to two or even five times.

Read more...

Swift 3.0 Released!

Swift 3.0, the first major release of Swift since it was open-sourced, is now officially released! Swift 3 is a huge release containing major improvements and refinements to the core language and Standard Library, major additions to the Linux port of Swift, and the first official release of the Swift Package Manager.

Read more...

Xcode Playground Support

We are delighted to introduce Xcode Playground Support as part of the Swift open source community!

Read more...

Swift 3.0 Preview 1 Released!

We are very pleased to announce Developer Preview 1 of Swift 3.0!

Read more...

Swift 2.3

We are pleased to announce Swift 2.3!

Read more...

Swift 3.0 Release Process

This post describes the goals, release process, and estimated schedule for Swift 3.0.

Read more...

New Features in Swift 2.2

Swift 2.2 brings new syntax, new features, and some deprecations too. It is an interim release before Swift 3 comes later this year with even bigger changes, and the changes in Swift 2.2 align with the broader goals of Swift 3 to focus on gradually stabilizing the core language and Standard Library by adding missing features, refining what is already there, and removing what is no longer needed in the language. All changes in Swift 2.2 went through the community-driven Swift evolution process — where over 30 proposals have been submitted, reviewed, and accepted since Swift was open-sourced a few months ago.

Read more...

Swift 2.2 Released!

We are very pleased to announce the release of Swift 2.2! This is the first official release of Swift since it was open-sourced on December 3, 2015. Notably, the release includes contributions from 212 non-Apple contributors — changes that span from simple bug fixes to enhancements and alterations to the core language and Swift Standard Library.

Read more...

Expanding Commit Access

Now that the Swift Continuous Integration system is established and proven, we’d like to grant commit access on a more frequent basis to project contributors who have established a track record of good contributions. If you would like commit access, please send an email to the code owners list with a list of 5 non-trivial pull requests that we accepted without modifications.

Read more...

Swift Benchmark Suite now Available

Apple’s Swift Team is happy to announce that Swift’s benchmark suite is now open source.

Read more...

Continuous Integration now Available

We are excited to announce that we have rolled out continuous integration (aka, CI) for the Swift project!

Read more...

It's Coming: the Great Swift API Transformation

Cocoa, the Swift standard library, maybe even your own types and methods—it’s all about to change, and you can help determine how.

Read more...

Swift 2.2 Release Process

This post describes the goals, release process, and estimated schedule for Swift 2.2.

Read more...

Swift 3 API Design Guidelines

The design of commonly-used libraries has a large impact on the overall feel of a programming language. Great libraries feel like an extension of the language itself, and consistency across libraries elevates the overall development experience. To aid in the construction of great Swift libraries, one of the major goals for Swift 3 is to define a set of API design guidelines and to apply those design guidelines consistently.

Read more...

The Swift Linux Port

With the launch of the open source Swift project, we are also releasing a port that works with the Linux operating system! You can build it from the Swift sources or download pre-built binaries for Ubuntu. The port is still a work in progress but we’re happy to say that it is usable today for experimentation. Currently x86_64 is the only supported architecture on Linux.

Read more...

The Swift.org Blog

Welcome to the blog on Swift.org! Today we launched the open source Swift project along with the Swift.org website. We couldn’t be more excited to work together in an open community to find and fix issues, add enhancements, and bring Swift to new platforms.

Read more...