Welcome to the intermediate level of learning the Swift programming language.
Welcome to the intermediate level of learning the Swift programming language. In this module, we’ll take a few minutes to look at where we’re going in this intermediate course, from more foundational lessons on type safety and control flow to more complex topics on computed properties, lazy properties, extensions, and protocols.
In this module, you’ll learn more about type safety and why it’s so important in Swift. Swift is a type-safe language, which means how you establish and use your data types is very important. We’ll look at the String type and take a particularly deeper examination into the Character type that makes up String values. We’ll learn how to convert one specific type to another.
You’ll also learn about Swift’s control flow, going through a review of conditional statements with If Else, how to use logical and comparison operators, and how to loop through, or iterate, through a range of values.
Learning Objectives:
- Understand Swift Types and type conversion
- Recognize If Else statements
- Understand logical operators.
- Familiarize yourself with comparison operators
Skills you’ll gain
Common Intermediate FormatFunction ModuleGeneric ProgrammingProgram FlowSwift (Programming Language)What You'll Learn
- Understand Swift types and how to convert one specific type to another
- Examine the String type and the Character type that makes up String values
- Recognize and apply If Else conditional statements in Swift's control flow
- Use logical operators when writing Swift code
- Apply comparison operators to evaluate values
- Loop through, or iterate, through a range of values
Key Takeaways
- Swift is a type-safe language, so how you establish and use your data types is very important.
- String values are made up of the Character type, which this module examines in greater depth.
- Swift's control flow includes conditional statements using If Else, along with logical and comparison operators.
- This intermediate course moves from foundational lessons on type safety and control flow toward more complex topics such as computed properties, lazy properties, extensions, and protocols.
- Iteration in Swift lets you loop through a range of values.
Frequently Asked Questions
Who is this course for?
It is for learners at the intermediate level of learning the Swift programming language, building on foundational topics.
What topics does this module cover?
It covers type safety and type conversion, the String and Character types, and Swift's control flow including If Else conditional statements, logical operators, comparison operators, and iterating through a range of values.
What lessons are included?
The lessons are Intermediate Level Overview, Review of Type Safety, and Review of Control Flow.
What skills does this course relate to?
It relates to Swift programming, program flow, generic programming, and function modules.
What more advanced topics does the broader intermediate course move toward?
The course progresses toward more complex topics such as computed properties, lazy properties, extensions, and protocols.
Transcript
Show transcript (free preview lesson)
Transcript of the free preview lesson. Remaining lessons unlock with the full course.
Hello, my name is Mark Nair, and in these lessons you'll learn a swift, intermediate level overview, a review of type safety, and a review of control flow. In this lesson, I'd like to take you through a quick overview of this intermediate course. We'll start by looking at the basics, just in case you're a little bit rusty. Then we'll spend some time with Swift Playgrounds, and look at some terrific functionality they have that will give you a kickstart on your Swift development adventure. We'll then take a look at enumerations including syntax, associated values, raw values, using CaseIterable, and recursive enumerations. After that, we'll spend some time with data structures. We'll have a quick review of structs, and look at value types and reference types. Then we'll focus on stacks and generics. Then we'll move into exploring collections. We'll have a refresher on arrays and modifying them. We'll do the same for dictionaries. Then we'll take a look at using map for each filter and sort. Then we'll get into optionals, a particularly tricky thing for many people. But don't worry, I'll walk you through it step by step. I'll do the same thing for overloading functions, variadic functions, and closures. Closures can be a bit intimidating, so we'll take our time with them. That'll take us to computed properties, lazy properties, extensions, and protocols. Huh, that's a whirlwind tour. We have a lot ahead of us, but it'll be fun, and I hope you'll learn quite a bit. Now, stay tuned for the next lesson where I'll take you on a review of types in type safety.
Learn on the Go
Take your learning anywhere — the KnowledgeCity mobile app lets you watch lessons on the go.