A summary of Apple's Swift language written on Playgrounds.
Apple's documentation is great for learning Swift, but who's got the time to read all that? 😄
This summary cuts to the chase. It is directly written on the Playgrounds platform, which makes it very interactive. You can tinker around with it as much as you like!
Once you've downloaded or cloned the repository and you open it with Xcode, you'll find most of the chapters from Apple's documentation, plus a Resources folder that contains extra material. The numbering in each chapter is consistent with Apple's. Chapters with a strikethrough have not been added to the book yet as being considered unimportant. More specifically, you'll find:
Chapters
- The Basics
- Basic Operators
Strings and Characters- Collection Types
- Control Flow
- Functions
- Closures
- Enumerations
- Classes & Structs
- Properties
- Methods
- Subscripts
- Inheritance
- Initialization
- Deinitialization
- ARC
- Optional Chaining
- Error Handling
- Type Casting
Nested Types- Extensions
- Protocols
- Generics
- Access Control
Resources
- Higher Order Functions
Getting started with The Swift Summary Book is a piece of 🎂:
- Just clone or download the repository.
- You need to have Xcode v8.0 or above. You can download it here.
- Open the
.swift
file with Xcode and voilà!
The Swift Summary Book takes advantage of the Playground platform and many of its powerful capabilities:
- The book is made of a single file that contains all chapters inside, which allows for easy access.
- Chapters use the Playground Markup Language, which brings rich documentation to the code examples.
- Every chapter has Page Linking, which allows to go back and forth from one chapter to the next, previous or another that was mentioned with in the chapter.
The Swift language is still under rapid development, which means that the documentation is changing all the time, and some sections might break at a given time.
- Help me keep this summary 👍 by creating pull requests and issues!
- Share this project and make sure you and others give it a ⭐
- 🐦 twitter: @jkarmy.
- ☕️ If you like the open-source work I do, consider buying me a coffee so I can stay awake and keep typing away!
The MIT License (MIT)
Copyright (c) 2016 Juan Antonio Karmy
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.