Description
Quick Guides for Masterminds are excerpts from our best-selling books SwiftUI for Masterminds, UIKit for Masterminds, and HTML5 for Masterminds, providing a cost-effective alternative to getting the information you need.
With this guide, you will learn how to program in Swift 5.7 and how to implement Swift concurrency. After reading this guide, you will know how to program in Swift, how to define functions and objects, and how to write code using the Swift paradigm.
Table of Contents
INTRODUCTION TO SWIFT
Computer Programming
Playground
Variables
Memory
Primitive Data Types
Declaration and Initialization
Arithmetic Operators
Constants
Swift Data Types
Characters
Strings
Booleans
Optionals
Tuples
Conditionals and Loops
If and Else
Switch
While and Repeat While
For In
Control Transfer Statements
Guard
SWIFT PARADIGM
Programming Paradigms
Functions
Declaration of Functions
Generic Functions
Standard Functions
Scopes
Closures
Structures
Definition of Structures
Key Paths
Methods
Initialization
Computed Properties
Property Observers
Type Properties and Methods
Generic Structures
Primitive Type Structures
Range Structures
String Structures
Array Structures
Set Structures
Dictionary Structures
Enumerations
Raw Values
Associated Values
Objects
Definition of Objects
Type Properties and Methods
Reference Types
Self
Memory Management
Inheritance
Type Casting
Initialization
Deinitialization
Access Control and Modifiers
Singletons
Protocols
Definition of Protocols
Generic Protocols
Swift Protocols
Extensions
Delegates
Errors
Throwing Errors
Handling Errors
Results
CONCURRENCY
Asynchronous and Concurrent Tasks
Tasks
Async and Await
Errors
Concurrency
Actors
Main Actor
Asynchronous Sequences
Task Group
Asynchronous Images