Beyond the Standard Library

Apple's intention when open-sourcing Swift was to provide a cross-platform, general-purpose programming language that is ready to use. The Swift standard library provides core language features and common collection types. However, this does not provide everything needed to get up and running.

Therefore, Apple provides a framework called Foundation to help you perform common programming tasks that aren't covered by the core Swift language and the standard library.

The Foundation framework that you will use when developing for Apple platforms is closed-sourced, which means the underlying code is not accessible and only the API is visible. However, when Apple open-sourced Swift and made it available for Linux, it ...

Get Swift Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.