Foundation - Apple Developer Documentation
Foundation - Apple Developer Documentation
Foundation - Apple Developer Documentation
DocumentationFoundation
Language: Swift "
API Changes: Show "
Framework
Foundation
Access essential data types, collections, and operating-system services to SDKs
define the base layer of functionality for your app. iOS 2.0+
macOS 10.0+
tvOS 9.0+
The Foundation framework provides a base layer of functionality for apps and On This Page
frameworks, including data storage and persistence, text processing, date and time Overview !
calculations, sorting and filtering, and networking. The classes, protocols, and data types Topics !
defined by Foundation are used throughout the macOS, iOS, watchOS, and tvOS SDKs.
Topics
Fundamentals Numbers, Data, and Basic Values
Work with primitive values and other fundamental types used throughout Cocoa.
Collections
Use arrays, dictionaries, sets, and specialized collections to store and iterate groups of
objects or values.
Data Formatting
Convert numbers, dates, measurements, and other values to and from locale-aware
string representations.
Resources
Access assets and other data bundled with your app.
Notifications
Design patterns for broadcasting information and for subscribing to broadcasts.
Scripting Support
Allow users to control your app with AppleScript and other automation technologies, or
run scripts from within your app.
Files and Data File System
Persistence Create, read, write, and examine files and folders in the file system.
Preferences
Persistently store domain-scoped pieces of information used to configure your app.
Spotlight
Search for files and other items on the local device, and index your app's content for
searching.
iCloud
Manage files and key-value data that are automatically synchronized among a user's
iCloud devices.
Bonjour
Advertise services for easy discovery on local networks, or discover services advertised
by others.
Object Runtime
Get low-level support for basic Objective-C features, Cocoa design patterns, and Swift
integration.
Foundation Constants
Beta Software