apple/swift-foundation
Foundation provides a base layer of functionality useful in many applications, including fundamental types for numbers, data, collections, and dates, as well as functions for task management, file system access, and more.
Obtaining Foundation
Foundation is available in several forms — built into the OS on Apple platforms, included in Swift toolchains, and as a Swift package. For guidance on which to use and the tradeoffs involved, see Distributions.md.
[!IMPORTANT] The swift-foundation package is intended to support development and testing of Foundation itself. It is not supported for use as a package dependency in other shipping projects. Prefer the built-in copy of Foundation that ships with your toolchain or operating system instead.
Building and Testing
[!NOTE] Building swift-foundation requires the in-development Swift 6.2 toolchain. You can download the Swift 6.2 nightly toolchain from the Swift website.
Before building Foundation, first ensure that you have a Swift toolchain installed. Next, check out the Getting Started section of the Foundation Build Process guide for detailed steps on building and testing.
Governance
Foundation's goal is to create the best fundamental data types and internationalization features, and make them available to Swift developers everywhere. It takes advantage of emerging features in the language as they are added, and enables library and app authors to build higher level API with confidence.
This project is part of the overall Swift project. It has a workgroup to (a) oversee community API proposals and (b) to closely coordinate with developments in the Swift project and Apple platforms. The workgroup meets regularly to review proposals, look at emerging trends in the Swift ecosystem, and discuss how the library should evolve.
Contributions
Foundation welcomes contributions from the community, including bug fixes, tests, documentation, and ports to new platforms.
We use the Swift forums for discussion and GitHub Issues for tracking bugs, feature requests, and other work.
Please see the CONTRIBUTING document for more information, including the process for accepting community contributions for new API in Foundation.
Package Metadata
Repository: apple/swift-foundation
Default branch: main
README: README.md