Programming in Swift

Sep 26 2017 · Beginner · Video Course · 4 hrs, 58 mins

Learn about Apple’s open source programming language, Swift, through hands-on examples! This series is up-to-date for Swift 4 and uses Xcode 9.

Version

  • Swift 4, iOS 11, Xcode 9

Part 1: Core Concepts

Introduction

3:05 Free

Let's review what you'll be learning in this section, and why it's important.

1

Swift Playgrounds

4:49 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

1:38 Free

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

5:23 Free

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 hands-on challenge.

5

Booleans

7:44

Learn how to use a Swift type called Booleans, which represent true or false values.

6

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

7

Scope

3:16

Learn what the concept of scope means in Swift, and how it applies to if statements.

8

Conclusion

0:48

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

9

Part 2: Flow Control

Let's review what you'll be learning in this section, and why it's 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

7: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

Conclusion

0:55

Let's review what you learned in this section, and discuss what's next.

17

Part 3: Functions and Optionals

Let's review what you'll be learning in this section, and why it's important.

18

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

19

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

20

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

21

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

22

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

23

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

24

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

25

Conclusion

0:42

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

26

Part 4: Collections

Let's review what you'll be learning in this section, and why it's important.

27

Arrays

13:29

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

28

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

29

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

30

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

31

Sets

2:20

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

32

Closures

10:34

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

33

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

34

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

35

Learn which collection you should use in a given situation.

36

Strings

15:03

Learn how a string works in Swift, along with some useful things you can do with strings - and why strings are collections too.

37

Conclusion

0:36

Let's review what you learned in this section, and discuss what's next.

38

Part 5: Structures

Let's review what you'll be learning in this section, and why it's important.

39

Structures

13:20

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

40

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

41

Protocols

5:40

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

42

Properties

14:14

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

43

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

44

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

45

Methods

10:38

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

46

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

47

Let's review what you learned in this section, and discuss what's next.

48

Part 6: Classes

Let's review what you'll be learning in this section, and why it's important.

49

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

50

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

51

Inheritance

15:25

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

52

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

53

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

54

Learn when you should subclass, and when you shouldn't.

55

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.

56

Conclusion

0:52

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

57

Contributors

Comments