Swift 5.2 Docs

Contains adsIn-app purchases
1K+
Downloads
Content rating
Everyone
Screenshot image
Screenshot image
Screenshot image
Screenshot image
Screenshot image
Screenshot image
Screenshot image

About this app

The Swift Programming Language Documentation v5.2

Swift is a general-purpose programming language built using a modern approach to safety, performance, and software design patterns.

The goal of the Swift project is to create the best available language for uses ranging from systems programming, to mobile and desktop apps, scaling up to cloud services. Most importantly, Swift is designed to make writing and maintaining correct programs easier for the developer. To achieve this goal, we believe that the most obvious way to write Swift code must also be:

Safe. The most obvious way to write code should also behave in a safe manner. Undefined behavior is the enemy of safety, and developer mistakes should be caught before software is in production. Opting for safety sometimes means Swift will feel strict, but we believe that clarity saves time in the long run.

Fast. Swift is intended as a replacement for C-based languages (C, C++, and Objective-C). As such, Swift must be comparable to those languages in performance for most tasks. Performance must also be predictable and consistent, not just fast in short bursts that require clean-up later. There are lots of languages with novel features — being fast is rare.

Expressive. Swift benefits from decades of advancement in computer science to offer syntax that is a joy to use, with modern features developers expect. But Swift is never done. We will monitor language advancements and embrace what works, continually evolving to make Swift even better.

Tools are a critical part of the Swift ecosystem. We strive to integrate well within a developer’s toolset, to build quickly, to present excellent diagnostics, and to enable interactive development experiences. Tools can make programming so much more powerful, like Swift-based playgrounds do in Xcode, or a web-based REPL can when working with Linux server-side code.


Table of Content

About Swift
Version Compatibility
A Swift Tour
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
Type Casting
Nested Types
Extensions
Protocols
Generics
Opaque Types
Automatic Reference Counting
Memory Safety
Access Control
Advanced Operators
About the Language Reference
Lexical Structure
Types
Expressions
Statements
Declarations
Attributes
Patterns
Generic Parameters and Arguments
Summary of the Grammar
Document Revision History
Updated on
May 7, 2020

Data safety

Safety starts with understanding how developers collect and share your data. Data privacy and security practices may vary based on your use, region, and age. The developer provided this information and may update it over time.
No data shared with third parties
Learn more about how developers declare sharing
No data collected
Learn more about how developers declare collection

Ratings and reviews

4.2
16 reviews
A Google user
March 25, 2019
Never try to enlarge the font size. When you tap on increase font size the font size will increase to a specific limit but when you tap on decrease font size the font size will keep on growing without any limit and you cannot zoom in or out by pinching in or out with your fingers. In short, can't decrease the font dinner after increased.
4 people found this review helpful
Did you find this helpful?
A Google user
June 7, 2019
not working in mi a1
4 people found this review helpful
Did you find this helpful?
George Muigai
June 13, 2021
👍👍👍👍👍👍👍👍
1 person found this review helpful
Did you find this helpful?

What's new

Update Swift Documentation v5.2
Bug fixes on font resize