There is an updated version of this course available, created for Swift 4, iOS 12, Xcode 10. View Latest Version
Pro

Advanced Swift 3

May 9 2017 · Video Course (3 hrs, 35 mins) · Advanced

Learn techniques that let you write clearer code and hide complexity at little or no cost. Zero cost abstraction at its finest.

Version

  • Swift 3, iOS 10, Xcode 8

Introduction

2:14 Free

In this video, learn what topics will be covered in the Advanced Swift 3 video course.

1

Swift protocols give all nominal types polymorphic behavior. This video compares class versus protocol based designs.

2

Swift gives you the ability to create your own operators with custom precedence. This video shows you how to tap into this power.

3

This video reviews generics and shows you how to make them more specific with protocol constraints.

4

This video takes a closer look at the difference between values and references and how it affects mutability.

5

Swift collections have value semantics and good performance because they are implemented with copy-on-write. This video shows how to do this for your own types.

6

The Sequence protocol is foundational to standard library's collection data structures and algorithms. This video shows how to tap into this powerful system.

7

The Collection protocol provides capability over a simple Sequence. You gain additional functionality, and get access to more efficient implementations to standard algorithms.

8

Ranges

11:45

In this video you will learn about the Swift range types in detail and shows how they can be extended without repeating yourself.

9

The type system can prevent all kinds of usage errors and bugs from sneaking into your code. Learn to make compiler errors your friend and prevent problems at runtime.

10

Swift uses Automatic Reference Counting to determine when it can release memory. Learn when to use unowned and weak to prevent reference cycles and lost memory.

11

As reference types, closures face the same challenges that classes do when it comes to memory management. Use weak and unowned with closure captures to prevent leaks.

12

By default, Swift is memory safe; it prevents access to uninitialized raw memory. Learn how to circumvent this safety when interfacing with an unsafe language or gain performance.

13

A hallmark of production-ready code is good error handling. Learn about the types of error handling Swift has to offer and when and how to use each.

14

To use your custom types as dictionary keys or in sets, they need to be hashable. This video explores utilizing custom composable hash algorithms.

15

Conclusion

3:05

In this conclusion video, review what you've learned and check out resources for future learning.

16

Version history

iOS 12, Swift 4, Xcode 10

Mar 26 2019

iOS 10, Swift 3, Xcode 8 (Selected)

May 9 2017

Contributors

Comments