
Explore swift's switch statement, including cases, ranges, and default; learn how fall through works, and how to match values, tuples, and strings concisely across data types.
Learn Swift while loops with a condition, optional parentheses, and a simple increment to loop up to ten times, plus the do while variant that guarantees at least one execution.
Explore closures in Swift by building a do math function that accepts two integers and an inline closure, then learn long-form and shorthand syntax, parameter inference, and $0/$1 usage.
Learn trailing closures in swift by moving long closures after the final function parameter to improve readability. Use trailing closures when the closure is the only or final parameter.
Explore Swift arrays, including strong typing, type inference, mutability with let and var, and common operations like append, insert, remove, for-in looping, and subscript access and update.
Explore Swift class methods, including adding to a total in a calculator class, and calling methods with external parameter names for multi-parameter functions like divide.
Learn how protocols act as contracts that require classes to implement specified properties and methods, with examples from delegate patterns and a game controller protocol defining a speed property.
Discover how Swift enumerations can have raw values backed by integers or strings, access them with the dot to raw function, and handle nil for invalid inputs.
Explore bitwise operators in Swift, including not and or, and the tilde for bit inversion, plus left and right shifts, binary notation (0b), and two's complement for negative numbers.
Overload Swift operators to customize behavior for your structs, such as adding points with a plus operator, plus equals assignment, and an equality check to compare points.
Build a master detail iOS app in swift by creating a task class, converting to a swift array, and wiring the master and detail views with a prepare for segue.
This Learning to Program with Swift training course from Infinite Skills will teach you how to program with Swift for iOS and Mac OS. This course is designed for beginner and experienced developers, and knowledge of Java, C#, or other modern languages is recommended.
You will start with an introduction to Swift, including learning how to define constants and variables and learning about conditional statements and control flow statements. From there, Rogers will teach you about the Swift language features. This video tutorial will also cover Swift classes and inheritance, as well as enumerations, structures, generics, and operators. Finally, you will see Swift in action as you watch Rogers demonstrate a Master-Detail application.
Once you have completed this computer based training course, you will be fully capable of using Swift’s modern features to program for iOS and Mac OS. Working files are included, allowing you to follow along with the author throughout the lessons.