Welcome to Swift
About Swift
Version Compatibility
A Swift Tour
Language Guide
The Basics
Basic Operators
Strings and Characters
Collection Types
Control Flow
Functions
Closures
Enumerations
Structures and Classes
Properties
Methods
Subscripts
Inheritance
Initialization
Deinitialization
Optional Chaining
Error Handling
Concurrency
Macros
Type Casting
Nested Types
Extensions
Protocols
Generics
Opaque and Boxed Protocol Types
Automatic Reference Counting
Memory Safety
Access Control
Advanced Operators
Language Reference
About the Language Reference
Lexical Structure
Types
Expressions
Statements
Declarations
Attributes
Patterns
Generic Parameters and Arguments
Summary of the Grammar
Revision History
Document Revision History