Gain hands-on experience with Swift 5. Learn the fundamentals of this popular programming language, so you can develop your own apps and games for macOS and iOS.
Overview
Syllabus
Introduction
- Begin an adventure with Swift 5
- Quest accepted: What you should know
- Swift retrospective
- Getting Xcode
- Reviewing the exercise files
- The quest begins: Variables
- Variables and constants
- Type safety and inference
- Logging and commenting
- Swift operators
- Understanding strings
- Working with strings
- Type conversions
- Booleans and logical operators
- Introducing optionals
- Accessing documentation
- Challenge: Player stats
- Solution: Player stats
- Gathering inventory with collections
- Swift arrays
- Core array methods
- Swift dictionaries
- Core dictionary methods
- Working with sets
- Core set methods
- Swift tuples
- Challenge: Merchant shop
- Solution: Merchant shop
- Controlling your destiny
- The if statement
- Unwrapping optionals
- Using for-in loops
- While loops
- The switch statement
- The guard statement
- Challenge: Game logic
- Solution: Game logic
- Leveling the playing field
- Basic functions
- Overloading functions
- Complex functions
- Function types
- Understanding closures
- Using closures
- Type aliasing
- Challenge: Battlegrounds
- Solution: Battlegrounds
- Populating the game world
- Value vs. reference types
- Basic Swift classes
- Access modifiers and properties
- Subclassing in Swift
- Basic Swift structs
- Chaining optionals
- Challenge: Inventory system
- Solution: Inventory system
- Final stage, final boss
- Swift enumerations
- Raw and associated values
- Introducing protocols
- Using extensions
- Throwing errors
- Handling errors
- Challenge: Battle actions
- Solution: Battle actions
- Next steps
Taught by
Harrison Ferrone