Foundation
Access essential data types, collections, and operating-system services to define the base layer of functionality for your app.
Overview
The Foundation framework provides a base layer of functionality for apps and frameworks, including data storage and persistence, text processing, date and time calculations, sorting and filtering, and networking. The classes, protocols, and data types defined by Foundation are used throughout the macOS, iOS, watchOS, and tvOS SDKs.
Topics
Fundamentals
Numbers, Data, and Basic ValuesStrings and TextCollectionsDates and TimesUnits and MeasurementData FormattingFilters and Sorting
App Support
Files and Data Persistence
File SystemArchives and SerializationSettingsSpotlightiCloudOptimizing Your App’s Data for iCloud Backup