Programming in Swift

Aug 21 2018 · Beginner · Video Course · 5 hrs, 37 mins

Learn about Apple’s open source programming language, Swift, through hands-on examples!

Version

  • Swift 4, iOS 12, Xcode 10

Core Concepts

Introduction

3:04 Free

Let's take a look at what you'll be learning in this part of the course, and why it's important.

1

Swift Playgrounds

6:58 Free

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.

2

Comments

5:38

Learn the various ways to add comments to your Swift code - a useful way to document your work or add notes for future reference.

3

Tuples

7:24

Learn the group related data together into a single unit, through the power of a Swift type called Tuples.

4

Practice using tuples on your own, through a series of hands-on challenges.

5

Learn how to use a Swift type called Booleans, which represent true or false values, and a bunch of new operators.

6

Practice using booleans on your own, through a series of hands-on challenges.

7

Scope

4:53

Take another look at the if statement, and learn what the concept of scope means in Swift.

8

Conclusion

1:54

Let's review where you are with your Swift core concepts, and discuss what's next.

9

Control Flow

Let's review what you'll be learning in this part of the course, and why control flow is important.

10

Learn how to make Swift repeat your code multiple times with while loops, repeat while loops, and break statements.

11

Practice using while loops on your own, through a hands-on challenge.

12

For Loops

10:30

Learn how to use for loops in Swift, along with ranges, continue, and labeled statements.

13

Practice using for loops on your own, through a hands-on challenge.

14

Learn how to use switch statements in Swift, including some of its more powerful features.

15

Practice using switch statements on your own, through a hands-on challenge.

16

Learn about Enums, a powerful tool in Swift that can help with your switch statements and so much more!

17

Conclusion

1:19

Let's review what you learned about control flow in this part, and discuss what's next.

18

Functions & Optionals

Review what you'll be learning in this part of the course about functions and optionals.

19

Learn how to write your own functions in Swift, and see for yourself how Swift makes them easy to use.

20

Practice writing functions on your own, through a hands-on challenge.

21

Learn some more advanced features of functions, such as overloading, inout parameters, and functions as variables.

22

Learn about one of the most important aspects of Swift development - optionals - through a fun analogy.

23

Practice using optionals on your own, through a hands-on challenge.

24

Learn how to unwrap optionals, force unwrap optionals, use optional binding, and use the guard statement.

25

Practice unwrapping optionals on your own, through a hands-on challenge.

26

Conclusion

1:12

Let's review where you are with your Swift core concepts, and discuss what's next.

27

Collections

Let's review what you'll be learning in this part of the course, and why it's important.

28

Arrays

11:10

Learn how to use arrays in Swift to store and manipulate an ordered list of values.

29

Practice using arrays on your own, through a hands-on challenge.

30

Learn how to use dictionaries in Swift to store an unordered collection of pairs.

31

Practice using dictionaries on your own, through a hands-on challenge.

32

Sets

6:05 Free

Learn how to use Sets in Swift to store an unordered collection of unique values.

33

Closures

10:52

Learn how to create closures in Swift - which you can think of as a function without a name.

34

Learn how you can use closures to sort collections, filter collections, run calculations on elements within a collection, and more.

35

Practice using closures on your own, through a hands-on challenge.

36

Conclusion

1:20

Let's review what you learned about collections in this part of the course, and discuss what's next.

37

Structures

Let's review what you'll be learning about structures in this part of the course, and why it's important.

38

Structures

13:56

Learn how to group data and functionality together in Swift, using a value type called structures.

39

Practice using structures on your own, through a hands-on challenge.

40

Properties

17:34

Learn how to add two types of properties to your types: stored properties, and computed properties.

41

Practice creating properties on your own, through a hands-on challenge.

42

Learn when it's best to use computed properties, and when it's best to use methods.

43

Methods

13:31

Take a deep dive into methods, including writing initializers, mutating methods, extensions, and more.

44

Practice writing methods on your own, through a hands-on challenge.

45

Conclusion

1:14

Let's review what you learned about structures in this part of the course, and discuss what's next.

46

Classes

Let's review what you'll be learning about classes in this part of the course, and why it's important.

47

Learn about the differences between classes and structures in Swift, and when you should use which.

48

Practice working with classes and understanding when to use them vs. structures, through a hands-on challenge.

49

Inheritance

12:39

Learn how you can inherit functionality from another class in Swift.

50

Initializers

10:08

Learn how to create your own class initializers, including two-phase initialization, and required vs. convenience initializers.

51

Practice creating your own class initializers, through a hands-on challenge.

52

Learn five concepts to help you decide when you should subclass, and when you shouldn't.

53

Protocols

8:20

Learn how to make your types conform to protocols in Swift, which you can think of as a to-do list for your types.

54

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.

55

Conclusion

1:52

Let's review where you're at with your Swift core concepts, and give you some advice about where to go next.

56

Contributors

Comments