Programming in Swift: Fundamentals

Oct 19 2021 Swift 5.5, iOS 15, Xcode 13

Part 1: Core Concepts

9. Conclusion

Episode complete

Play next episode

Save for later
About this episode
See versions

See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 8. Challenge: Optionals Next episode: 10. Introduction

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

When you started this part of the course, you already knew five Swift Core Concepts, that you picked up from building Bull’s Eye.

Let’s review what you know now.

You’ve learned the basics of how to use Swift playgrounds. You know how to make a new playground, how to add and navigate playground pages, and how to use cool playground features like the results sidebar and debug console.

You know how to add comments to your code now! You’ve added single and multi-line comments, and learned a little about Playground markup and how to see it in a rendered or raw state.

You also learned how to comment out code with a keyboard shortcut, but here’s another reminder not to leave commented out code hanging around in your projects!

You also learned about another Swift type called Booleans, or bools, which are values that are either true, or false. Along with Bools, you tried out a bunch of comparison operators, such as less than and greater than, that can be used to create those boolean values.

In addition, you used the logical operators “and” and “or” operators to find out if sets of boolean values were all true, or if at least one was true.

You revisited the concept of if statements and extended that to if-else statements, and learned about a concise alternative, the ternary conditional operator.

Finally, you learned about Optionals, where you can either have a value, or no value, which is represented as nil. You also learned how to safely unwrap optionals and how to use the if let construct.

That was a lot of ground to cover, but hopefully you’ve been enjoying our deep dive into Swift, and are having fun experimenting in Swift Playgrounds so far.

If you want to take your Swift skills to the next level, continue onto the next part where we’ll focus on some really useful ways to store data in your apps: collections!

See you in the next video!