Table of Contents

Table of Contents

  1. Welcome to Swift
    1. About Swift
    2. Version Compatibility
    3. A Swift Tour
  2. Language Guide
    1. The Basics
    2. Basic Operators
    3. Strings and Characters
    4. Collection Types
    5. Control Flow
    6. Functions
    7. Closures
    8. Enumerations
    9. Structures and Classes
    10. Properties
    11. Methods
    12. Subscripts
    13. Inheritance
    14. Initialization
    15. Deinitialization
    16. Optional Chaining
    17. Error Handling
    18. Type Casting
    19. Nested Types
    20. Extensions
    21. Protocols
    22. Generics
    23. Automatic Reference Counting
    24. Memory Safety
    25. Access Control
    26. Advanced Operators
  3. Language Reference
    1. About the Language Reference
    2. Lexical Structure
    3. Types
    4. Expressions
    5. Statements
    6. Declarations
    7. Attributes
    8. Patterns
    9. Generic Parameters and Arguments
    10. Summary of the Grammar
  4. Revision History
    1. Document Revision History
  5. Trademarks