Book description
Get quick answers for developing and debugging applications with Swift, Apple’s multi-paradigm programming language. Updated to cover the latest features in Swift 2.0, this pocket reference is the perfect on-the-job tool for learning Swift’s modern language features, including type safety, generics, type inference, closures, tuples, automatic memory management, and support for Unicode.
Publisher resources
Table of contents
- Introduction
- Conventions Used in This Book
- Using Code Examples
- Safari® Books Online
- How to Contact Us
- Acknowledgments
- Getting Started with Swift 2
- A Taste of Swift
- Basic Language Features
- Types
- Variables and Constants
- Tuples
- Operators
- Strings and Characters
- Arrays
- Dictionaries
- Sets
- Functions
- Closures
- Optionals
- Program Flow
- Classes
- Structures
- Enumerations
- Access Control
- Extensions
- Checking and Casting Types
-
Protocols
- Required Properties
- Required Methods
- Optional Methods and Properties
- Initializers in Protocols
- Adopting Protocols with Extensions
- Inheritance and Protocols
- Using a Protocol as a Type
- Checking Protocol Conformance
- Protocol Extensions
- Built-In Protocols
- The GeneratorType Protocol
- The SequenceType Protocol
- The CollectionType Protocol
- Memory Management
- Generics
- Operator Overloading
- Ranges, Intervals, and Strides
- Global Functions
- Changes From Swift 1.0
- Index
Product information
- Title: Swift Pocket Reference, 2nd Edition
- Author(s):
- Release date: November 2015
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781491940075
You might also like
book
Swift Pocket Reference, 2nd Edition
Get quick answers for developing and debugging applications with Swift, Apple’s multi-paradigm programming language. Updated to …
book
Swift Pocket Reference, 3rd Edition
Get quick answers for developing and debugging applications with Swift 3, the latest version of Apple’s …
book
Swift 4 Protocol-Oriented Programming - Third Edition
Build fast and powerful applications by harnessing the power of protocol-oriented programming in Swift 4 About …
book
Swift For Dummies
Get up and running with Swift—swiftly Brimming with expert advice and easy-to-follow instructions, Swift For Dummies …