Swift Quick Syntax Reference
- Length: 180 pages
- Edition: 1
- Language: English
- Publisher: Apress
- Publication Date: 2014-09-23
- ISBN-10: 1484204409
- ISBN-13: 9781484204405
- Sales Rank: #1976852 (See Top 100 Books)
Swift Quick Syntax Reference is a condensed code and syntax reference to the new Apple Swift programming language, which is the alternative new programming language alongside Objective-C behind the APIs found in the Apple iOS SDK 8 and OS X Yosemite SDK. It presents the essential Swift syntax in a well-organized format that can be used as a handy reference.
You won’t find any technical jargon, bloated samples, drawn out history lessons, or witty stories in this book. What you will find is a language reference that is concise, to the point, and highly accessible. The book is packed with useful information and is a must-have for any Swift programmer.
In the Swift Quick Syntax Reference, you will find a concise reference to the Swift language syntax using the new Playgrounds. Playgrounds lets you type a line of code and the result appears immediately.
What youll learn
- How to declare and print constants and variables
- What are and how to use numbers, strings, booleans, tuples, optionals, aliases, global and local variables, assertions and more
- How to use assignment, arithmetic, comparison, ternary conditional, range, and logical operators
- What are enumerations, arrays, dictionaries, loops, if/switch, control transfer, labeled statements
- How to do closures in Swift
- How to define or handle structures, classes, instances, class instance identity, properties, property observers, type properties, and type methods
- How to work with subscripts, inheritance, overriding methods/properties, initialization, type checking/casting, nested types, extensions, delegation, generics and more…
Who this book is for
This book is a quick, handy syntax reference for experienced Objective-C, Mac, and iOS programmers, and a concise, easily-digested introduction for other programmers new to Mac, iOS and of course Swift.
Table of Contents
Chapter 1: Hello World
Chapter 2: Declaring Constants and Variables
Chapter 3: Printing Variables and Constants
Chapter 4: Code Comments
Chapter 5: Numbers
Chapter 6: Strings
Chapter 7: Booleans
Chapter 8: Tuples
Chapter 9: Optionals
Chapter 10: Type Aliases
Chapter 11: Global and Local Variables
Chapter 12: Assertions
Chapter 13: Assignment Operators
Chapter 14: Arithmetic Operators
Chapter 15: Comparison Operators
Chapter 16: Ternary Conditional Operator
Chapter 17: Range Operators
Chapter 18: Logical Operators
Chapter 19: Enumerations
Chapter 20: Arrays
Chapter 21: Dictionaries
Chapter 22: Loops
Chapter 23: if Statements
Chapter 24: switch Statements
Chapter 25: Control Transfer Statements
Chapter 26: Labeled Statements
Chapter 27: Functions
Chapter 28: Nested Functions
Chapter 29: Closures
Chapter 30: Structures
Chapter 31: Classes
Chapter 32: Using Instances
Chapter 33: Class Identity Operators
Chapter 34: Properties
Chapter 35: Property Observers
Chapter 36: Class Type Properties
Chapter 37: Type Methods
Chapter 38: Subscripts
Chapter 39: Inheritance
Chapter 40: Overriding Methods and Properties
Chapter 41: Initialization
Chapter 42: De-initialization
Chapter 43: Type Casting
Chapter 44: Nested Types
Chapter 45: Extensions
Chapter 46: Protocols
Chapter 47: Delegation
Chapter 48: Generics
Chapter 49: Automatic Reference Counting
Donate to keep this site alive
How to download source code?
1. Go to: https://github.com/Apress
2. In the Find a repository… box, search the book title: Swift Quick Syntax Reference
, sometime you may not get the results, please search the main title.
3. Click the book title in the search results.
3. Click Code to download.
1. Disable the AdBlock plugin. Otherwise, you may not get any links.
2. Solve the CAPTCHA.
3. Click download link.
4. Lead to download server to download.