Programming in Swift: Fundamentals

Oct 19 2021 · Swift 5.5, iOS 15, Xcode 13

Part 3: Control Flow

17. Introduction

Episode complete

Play next episode

Next
About this episode

Leave a rating/review

See forum comments
Cinema mode Mark complete Download course materials
Previous episode: Part 2 Quiz Next episode: 18. While Loops

Get immediate access to this and 4,000+ other videos and books.

Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and 4,000+ professional videos in a single subscription, it's simply the best investment you can make in your development career.

Learn more Already a subscriber? Sign in.

Notes: 17. Introduction

Update Notes: The student materials have been reviewed and are updated as of October 2021.

Transcript: 17. Introduction

Hey everyone! I’m Chris, and I am super-happy to invite you to the third part of this course: Control Flow! So far in this course, most of the code you’ve written has been executed one line at a time, from top to bottom. But in this part of the course, you’ll learn how to switch that up, with control flow.

You already know how to use one kind of control flow: if/else statements. In this part of the course, you’ll learn three more ways to control the flow of code execution in your apps!

You’ll first touch on while loops, and their close cousin, repeat-while loops.

Then, you’ll go over for loops, learn how ranges work, and how to use for loops to work with arrays.

I’ll also show you how to nest loops inside each other, and how to exit early from a loop if you have to! Most apps you write will use control flow in some way, so to make sure it really sinks in,

I’ve got some challenges for you to complete along the way. I’ll see you in the next video to start working with control flow, in Swift!