Book description
Get quick answers for developing and debugging applications with Swift 3, the latest version of Apple’s multi-paradigm programming language. This thoroughly updated 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. Designed to work with Cocoa and Cocoa Touch, Swift can be used in tandem with Objective-C, and either language can call APIs implemented in the other.
Publisher resources
Table of contents
- Introduction
- Conventions Used in This Book
- Using Code Examples
- O’Reilly Safari
- How to Contact Us
- Acknowledgments
- Getting Started with Swift 3
- 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
- Property Requirements
- Method Requirements
- Optional Method and Property Requirements
- 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 Iterator Protocol
- The Sequence Protocol
- The Collection Protocol
- The FloatingPoint Protocol
- Memory Management
- Generics
- Custom Operators
- Ranges and Strides
- Foundation
- Command-Line Arguments
- Conditional Compilation
- Declaration Attributes
- Global (Free) Functions
- Changes from Swift 2
Product information
- Title: Swift Pocket Reference, 3rd Edition
- Author(s):
- Release date: February 2017
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781491981665
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 4 Recipes: Hundreds of Useful Hand-picked Code Snippets
Get the most out of Swift 4 with this carefully compiled collection of select code snippets …
book
Programming iOS 13
If you’re grounded in the basics of Swift, Xcode, and the Cocoa framework, this book provides …
book
Swift Style
Discover the do's and don'ts involved in crafting readable Swift code as you explore common Swift …