New Course: Programming in Swift 4

Ray Wenderlich

As part of our iOS 11 Launch Party, we are releasing a ton of new and updated courses for raywenderlich.com subscribers.

Today we are happy to release our second new course: Programming in Swift 4!

This course is designed as a follow-up to the Your First Swift 4 & iOS 11 App course that we released last week. Basically watch that first, and watch this second.

In Programming in Swift 4, you switch gears from app development, and take a deep dive into the Swift 4 programming language itself. You learn about core Swift programming concepts like variables, loops, optionals, and classes through hands-on tutorials using Swift Playgrounds.

This epic 57-video course is a complete overhaul of our previous Beginning and Intermediate Swift courses. This time, we take things slower and go into more depth, so you’ve got a solid baseline of Swift 4 knowledge before you proceed into more advanced courses on our site.

If you’re a beginner to programming in Swift 4, or programming in general (or if you know someone who is), this is the place to start. Let’s take a look at what’s inside.

Section 1: Core Concepts

In this section, you will build up a basic library of Swift Core Concepts, including working with Playgrounds and using simple datatypes like tuples and booleans.

This section contains 9 videos:

  1. Introduction: Let’s review what you’ll be learning in this section, and why it’s important.
  2. Swift Playgrounds: Learn how to create your first Swift playground, and see how useful it can be to learn Swift, and use in day-to-day development.
  3. Comments: Learn the various ways to add comments to your Swift code – a useful way to document your work or add notes for future reference.
  4. Tuples: Learn the group related data together into a single unit, through the power of a Swift type called Tuples.
  5. Challenge: Tuples: Practice using tuples on your own, through a hands-on challenge.
  6. Booleans: Learn how to use a Swift type called Booleans, which represent true or false values.
  7. Challenge: Booleans: Practice using booleans on your own, through a hands-on challenge.
  8. Scope: Learn what the concept of scope means in Swift, and how it applies to if statements.
  9. Conclusion: Let’s review where you are with your Swift core concepts, and discuss what’s next.

Section 2: Flow Control

In this section, you will learn how to control the flow of execution in your apps, using while loops, for loops, and switch statements.

This section contains 8 videos:

  1. Introduction: Let’s review what you’ll be learning in this section, and why it’s important.
  2. While Loops: Learn how to make Swift repeat your code multiple times with while loops, repeat while loops, and break statements.
  3. Challenge: While Loops: Practice using while loops on your own, through a hands-on challenge.
  4. For Loops: Learn how to use for loops in Swift, along with ranges, continue, and labeled statements.
  5. Challenge: For Loops: Practice using for loops on your own, through a hands-on challenge.
  6. Switch Statements: Learn how to use switch statements in Swift, including some of its more powerful features.
  7. Challenge: Switch Statements: Practice using switch statements on your own, through a hands-on challenge.
  8. Conclusion: Let’s review what you learned in this section, and discuss what’s next.

Section 3: Functions and Optionals

In this section, you will learn how to decompose the logic of your programs into functions, and we’ll demystify one area of Swift that can sometimes be confusing for beginners: optionals.

This section contains 9 videos:

  1. Introduction: Let’s review what you’ll be learning in this section, and why it’s important.
  2. Introduction to Functions: Learn how to write your own functions in Swift, and see for yourself how Swift makes them easy to use.
  3. Challenge: Introduction to Functions: Practice writing functions on your own, through a hands-on challenge.
  4. More Functions: Learn some more advanced features of functions, such as overloading, inout parameters, and functions as variables.
  5. Introduction to Optionals: Learn about one of the most important aspects of Swift development – optionals – through a fun analogy.
  6. Challenge: Introduction to Optionals: Practice using optionals on your own, through a hands-on challenge.
  7. More Optionals: Learn how to unwrap optionals, force unwrap optionals, use optional binding, and use the guard statement.
  8. Challenge: More Optionals: Practice working with optionals on your own, through a hands-on challenge.
  9. Conclusion: Let’s review where you are with your Swift core concepts, and discuss what’s next.

Section 4: Collections

In almost every Swift program you write, you’ll be dealing with collections of data. In this section, you’ll learn about three types of collections in Swift, and their performance differences.

This section contains 12 videos:

  1. Introduction: Let’s review what you’ll be learning in this section, and why it’s important.
  2. Arrays: Learn how to use arrays in Swift to store an ordered list of values.
  3. Challenge: Arrays: Practice using arrays on your own, through a hands-on challenge.
  4. Dictionaries: Learn how to use dictionaries in Swift to store an unordered collection of pairs.
  5. Challenge: Dictionaries: Practice using dictionaries on your own, through a hands-on challenge.
  6. Sets: Learn how to use Sets in Swift to store an unordered collection of unique values.
  7. Closures: Learn how to create closures in Swift – which you can think of as a method without a name.
  8. Closures and Collections: Learn how you can use closures to sort collections, filter collections, run calculations on elements within a collection, and more.
  9. Challenge: Closures: Practice using closures on your own, through a hands-on challenge.
  10. Which Collection To Use?: Learn which collection you should use in a given situation.
  11. Strings: Learn how a string works in Swift, along with some useful things you can do with strings – and why strings are collections too.
  12. Conclusion: Let’s review what you learned in this section, and discuss what’s next.

Section 5: Structures

Next you’ll start learning about creating named types in Swift, starting with one of the most simple options: structures.

This section contains 10 videos:

  1. Introduction: Let’s review what you’ll be learning in this section, and why it’s important.
  2. Structures: Learn how to group data and functionality together in Swift, using a value type called structures.
  3. Challenge: Structures: Practice using structures on your own, through a hands-on challenge.
  4. Protocols: Learn how to make your types conform to protocols in Swift, which you can think of as a to-do list for your types.
  5. Properties: Learn how to add two types of properties to your types: stored properties, and computed properties.
  6. Challenge: Properties: Practice creating properties on your own, through a hands-on challenge.
  7. Computed Properties vs. Methods: Learn when it’s best to use computed properties, and when it’s best to use methods.
  8. Methods: Take a deep dive into methods, including writing initializers, mutating methods, extensions, and more.
  9. Challenge: Methods: Practice writing methods on your own, through a hands-on challenge.
  10. Conclusion: Let’s review what you learned in this section, and discuss what’s next.

Section 6: Classes

Finally, you’ll see how much of what you just learned about structures applies to classes as well, and you’ll learn what the differences are and which to use when.

This section contains 9 videos:

  1. Introduction: Let’s review what you’ll be learning in this section, and why it’s important.
  2. Classes vs Structures: Learn about the differences between classes and structures in Swift, and when you should use which.
  3. Challenge: Classes vs. Structures: Practice working with classes and understanding when to use them vs. structures, through a hands-on challenge.
  4. Inheritance: Learn how you can inherit functionality from another class in Swift.
  5. Initializers: Learn how to create your own class initializers, including two-phase initialization, and required vs. convenience initializers.
  6. Challenge: Initializers: Practice creating your own class initializers, through a hands-on challenge.
  7. When Should You Subclass?: Learn when you should subclass, and when you shouldn’t.
  8. Memory Management: Learn how Swift manages memory under the hood, how you can tell when an object is deinitialized, and how you can avoid a nasty memory leak in your apps.
  9. Conclusion: Let’s review where you’re at with your Swift core concepts, and discuss what’s next.

Where To Go From Here?

Want to check out the course? You can watch the first four parts for free!

The rest of the course is for raywenderlich.com subscribers only. Here’s how you can get access:

  • If you are a raywenderlich.com subscriber: The entire 57-part course is complete and available today. You can check out the entire course here.
  • If you are not a subscriber yet: What are you waiting for? Subscribe now to get access to our new Xcode Tips and Tricks course and our entire catalog of over 500 videos.

This is just the beginning of the iOS 11 Launch Party, so stay tuned for many more new and updated courses to come. I hope you enjoy our new course! :]

Ray Wenderlich

Ray is part of a great team - the raywenderlich.com team, a group of over 100 developers and editors from across the world. He and the rest of the team are passionate both about making apps and teaching others the techniques to make them.

When Ray’s not programming, he’s probably playing video games, role playing games, or board games.

Other Items of Interest

Big Book SaleAll raywenderlich.com iOS 11 books on sale for a limited time!

raywenderlich.com Weekly

Sign up to receive the latest tutorials from raywenderlich.com each week, and receive a free epic-length tutorial as a bonus!

Advertise with Us!

PragmaConf 2016 Come check out Alt U

Our Books

Our Team

Video Team

... 19 total!

iOS Team

... 73 total!

Android Team

... 21 total!

Unity Team

... 11 total!

Articles Team

... 15 total!

Resident Authors Team

... 18 total!

Podcast Team

... 7 total!

Recruitment Team

... 9 total!