Ebook: Learning Swift
Author: Wagner Andrew Joseph
- Year: 2016
- Publisher: Packt Publishing
- Edition: 2nd edition
- Language: English
- epub
Cover -- Copyright -- Credits -- About the Author -- About the Reviewer -- www.PacktPub.com -- Table of Contents -- Preface -- Chapter 1: Introducing Swift -- Defining our goals for this book -- Setting up the development environment -- Running our first swift code -- Understanding playgrounds -- Learning with this book -- Summary -- Chapter 2: Building Blocks -- Variables, Collections, and Flow Control -- Core Swift types -- Constants and variables -- Containers -- Tuples -- Arrays -- Dictionaries -- Swift's type system -- Printing to the console -- Control flow -- Conditionals -- Switches -- Loops -- Functions -- Basic functions -- Parameterized functions -- Functions that return values -- Functions with default arguments -- Guard statement -- Bringing it all together -- Summary -- Chapter 3: One Piece at a Time -- Types, Scopes, and Projects -- Structs -- Types versus instances -- Properties -- Member and static methods -- Computed properties -- Reacting to property changes -- Subscripts -- Custom initialization -- Classes -- Inheriting from another class -- Initialization -- Overriding initializer -- Required initializer -- Designated and convenience initializers -- Overriding methods and computed properties -- Methods -- Computed properties -- Casting -- Upcasting -- Downcasting -- Enumerations -- Basic declaration -- Testing enumeration values -- Raw values -- Associated values -- Methods and properties -- Projects -- Setting up a command-line Xcode project -- Creating and using an external file -- Interfacing with code from other files -- File organization and navigation -- Extensions -- Scope -- How scope is defined -- Nested types -- Access control -- Summary -- Chapter 4: To Be or Not to Be -- Optionals -- Defining an optional -- Unwrapping an optional -- Optional binding -- Forced unwrapping -- Nil coalescing -- Optional chaining.
Download the book Learning Swift for free or read online
Continue reading on any device:
Last viewed books
Related books
{related-news}
Comments (0)