From the course: Swift 6 Essential Training
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
Leveling the playing field - Swift Tutorial
From the course: Swift 6 Essential Training
Leveling the playing field
- Our Swift adventure so far has gone from variables and types to collections and decision logic, but the functions we've been using are still a hundred percent defined by Swift. In order to start creating our own executable chunks of logic, we need to learn how to declare functions. Adding parameters, return types, and closures to that mix opens up a whole new level of programming possibilities, a level that includes declaring our own custom types. So let the quest begin.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
(Locked)
Leveling the playing field30s
-
(Locked)
Basic functions3m 25s
-
Overloading functions3m 12s
-
(Locked)
Complex functions5m 9s
-
(Locked)
Function types3m 25s
-
(Locked)
Understanding closures4m 43s
-
(Locked)
Using Closures IRL5m 9s
-
(Locked)
Type Aliasing2m 51s
-
(Locked)
Challenge: Battlegrounds37s
-
(Locked)
Solution: Battlegrounds5m 50s
-
(Locked)
-
-
-