This is part of the "iOS and SwiftUI for Beginners" learning path. View Path

Programming in Swift: Fundamentals

Oct 19 2021 · Video Course (4 hrs, 6 mins) · Beginner

Learn about Apple’s open source programming language, Swift, through hands-on examples! Take a deep dive into the Swift language, learning about core Swift concepts like loops, collections, types, optionals, functions, classes, and more.

5 / 5 3 Ratings

Version

  • Swift 5.5, iOS 15, Xcode 13

Core Concepts

Introduction

4:34 Free

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

1

Learn how to create your first Swift playground, what all the various bits are in playgrounds, and how comments work.

2

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

3

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

4

Logical Operators

15:37 Free

Learn how to use various logical and comparison operators in Swift to create Booleans.

5

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

6

Optionals

11:41 Free

Learn about one of the most important aspects of Swift development - optionals - and how to unwrap, force unwrap, and bind optionals.

7

Practice using optionals on your own, through a set of hands-on challenges.

8

Conclusion

1:50 Free

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

9

Beginning Collections

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

10

Tuples

6:24

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

11

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

12

Arrays

5:13

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

13

See how to manipulate arrays with their built-in methods.

14

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

15

Conclusion

0:59

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

16

Control Flow

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

17

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

18

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

19

For Loops

10:04

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

20

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

21

Learn how to use your existing knowledge of for loops to iterate over collections.

22

Practice iterating over collections using loops on your own, through a hands-on challenges.

23

Learn how to nest one loop inside another, and even terminate a loop early if and when you need to.

24

Practice working with nested loops and the break and continue statements on your own, through a hands-on challenge.

25

Conclusion

1:18

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

26

More Collections

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

27

Learn how to create and populate Dictionaries, a useful collection in Swift.

28

See how to access the contents of dictionaries and manipulate dictionaries.

29

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

30

Learn how to create sets, how to populate them with data and retrieve that data, and how to compare sets to each other with their built-in methods.

31

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

32

Conclusion

1:16

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

33

Functions & Named Types

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

34

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

35

See how the “return” keyword is used in Swift, and when it’s required and when it’s optional.

36

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

37

Structures

10:22

Learn how structures work, and all about their properties and methods.

38

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

39

Classes

9:32

Learn about the basics of Swift classes, and study how they are similar to and different from structures.

40

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

41

Conclusion

1:46

Let’s review what you learned in this section, and discuss what’s next for you in this learning path.

42

Next course in this Learning Path

Version history

iOS 15, Swift 5.5, Xcode 13 (Selected)

Oct 19 2021

iOS 14, Swift 5.3, Xcode 12

Aug 1 2020

iOS 12, Swift 4, Xcode 10

Aug 21 2018

iOS 11, Swift 4, Xcode 9

Sep 26 2017

iOS 10, Swift 3, Xcode 8

Sep 13 2016

iOS 9, Swift 2, Xcode 7

Sep 1 2015

Who is this for?

Beginners! If you’ve never created a playground before, or if you aren’t sure what while loops or break statements are, this is a great course to get you started. With easy-to-understand lessons and hands-on practice, soon you’ll be writing your own methods and implementing structures and classes with ease.

You’ll start at the very beginning, creating your first playground and learning about comments, tuples, booleans, and operators. Then, you’ll learn to control the flow of your code. For loops, switch statements, enums, oh my! You’ll build on the basics by implementing functionals and optionals through fun, hands-on challenges.

This course isn’t suited for intermediate or advanced developers. If that’s you, check out our intermediate or advanced video courses for more ways to level-up your developer skills!

Covered concepts

  • Playgrounds
  • Comments
  • Tuples
  • Booleans
  • Operators
  • For loops
  • While loops
  • Switch statements
  • Enumerations
  • Functionals
  • Optionals
  • Collections
  • Arrays
  • Dictionaries
  • Structures
  • Properties
  • Methods
  • Classes/Subclasses
  • Protocols
  • Closures
  • Initializers
  • Memory management

Contributors

Comments