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

About this episode

Leave a rating/review

See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 16. Conclusion 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.

Heads up... You've reached locked video content where the transcript will be shown as obfuscated text.

Hey everybody, I'm Chris and I'm super excited to welcome you to the third part of this course control flow. Now, so far in this course, pretty much all the code you've written has been executed one line at a time from top to bottom. But in this part of the course, I'm going to show you how to switch that up with what's known as control flow. Now you already know how to use one kind of control flow, and that's the if else statement. But in this part of the course, I'm going to show you three more ways to control the flow of code execution right in your apps. Now you'll first take a look at while loops and their very close cousin, the repeat while loop, and then you'll go over for loops. You'll learn how ranges work and how you can use for loops to work with arrays. I'll also show you how you can nest one loop inside another loop, and even how to exit early from those loops, if and when you need to. So, pretty much every app you're going to write in your career is going to use control flow in some fashion. So to make sure it really sinks in, I've got some challenges for you to complete along the way. So I'll see you in the next video to start working with control flow in Swift.