Description
In this course, you will :
- Learn to feel at ease and competent in this succinct and powerful language.
- Learn how this language works with data, progress beyond the fundamentals of control flow into closures and extensions, and finally, adopt the mindset of protocol-oriented programming to tap into the vast amount of functionality already available in the Swift world.
- When you finish this course, you will have a solid understanding of Swift that will help you as you progress to developing apps for the iPhone, iPad, or Mac.
Syllabus :
1. A Few More Reasons to Learn Swift
- Reasons to Learn Swift That Don't Include the Word 'Apple'
- The One Thing I Expect (And Two Things You Should)
- The Basic Structure of Swift
- Writing and Running Swift in a Playground
- Sidebar: Writing Swift in the REPL
- Sidebar: The Swift Compilation Process
2. Piece by Piece: What Your Data Means
- Understanding Variables in Swift
- Constants: Why They're Important
- Introducing Operators
- Converting in Swift: When It Happens (And When It Doesn't)
- Making Conversion Happen
- Optionals — An Introduction
- Unwrapping Your Optionals
- Creating and Using Arrays
3. Shaping the Path: Controlling the Flow of Your Code
- The Good Old 'if' Statement and What's Different About It
- Writing Switch Statements
- Creating Loops and Making Ranges
- Sidebar: Taking Longer Strides
- Sidebar: Using String Interpolation
4. Constructing Code: Who Does What? - Creating Functions
- Defining and Calling Functions
- Returning Values
- Introducing Function Types
- Correctly Ignoring Return Values
- Customizing Argument Labels
- Naming Functions in Swift
5. Taking Data Types Further: When to Limit, Describe, and Collect
- Using Enumerations
- Defining and Using Structs
- Working with Dictionaries
- Creating and Decomposing Tuples
6. Making Sense of Closures
- Making Sense of Closures: Why You Use Them
- Exploring Closure Scenarios: What They Are, and Where You Use Them
- Using Closure Syntax: How to Write (and Read) Them
7. Using Classes and Objects in Swift
- Defining Classes
- Adding Initializers
- Revisiting Classes and Structs
- Implementing Inheritance and Overriding Methods
- Adding Functionality with Extensions
- Using Computed Properties
8. Introducing Protocols
- Introducing Protocols
- Defining and Handling Errors in Swift
- Dealing with Errors with Do-Catch and Try Statements
- Using Guard and Defer