Getting Started with Protocols in Swift
0.0 (0 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
16 students enrolled
Wishlisted Wishlist

Please confirm that you want to add Getting Started with Protocols in Swift to your Wishlist.

Add to Wishlist

Getting Started with Protocols in Swift

An introduction to Swift protocols with step-by-step instructions on how to create and use them
0.0 (0 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
16 students enrolled
Created by Packt Publishing
Last updated 7/2017
English
Current price: $10 Original price: $125 Discount: 92% off
5 hours left at this price!
30-Day Money-Back Guarantee
Includes:
  • 2 hours on-demand video
  • 1 Supplemental Resource
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I Learn?
  • Get to know the advantages of using protocols in your code
  • Explore the basic and advanced features of protocols
  • Define protocols in order to represent powerful and reusable concepts in your code
  • Create and use generic functions and types in Swift
  • Use generics with protocols in order to write powerful and flexible generic code
View Curriculum
Requirements
  • If you have no experience at all with protocols in Swift; we'll start right from the basics of what protocols are and how you define them.
Description

Using right protocols can transform the way you write Swift code. Building on top of familiar object oriented principles, they enable you to define blueprints for common functionality that any class, structure, or enumeration can adopt.

Protocols fix many of the most painful problems associated with OOP. This course introduces protocols and explains how to use them. With useful examples and practical, step-by-step instructions, you'll create protocols and use them in your code.

By the end of the course you'll be ready to use protocols in production to improve the effectiveness of your code.

About the Author

Hamish Knight is a Computer Science undergraduate at the University of Bath in the UK with a passion for Swift. I'm always interested in exploring how Swift operates at a lower level, and enjoy posting answers to Swift questions on Stack Overflow. Furthermore, I have three years' experience developing mobile apps for iOS, with four apps currently on the App Store.

Who is the target audience?
  • If you are a Swift Developer who is keen to improve the flexibility, maintainability, and reusability of your code, this video is for you.
Compare to Other Swift Courses
Curriculum For This Course
18 Lectures
02:12:22
+
Get to Know Your Protocols
6 Lectures 31:57

This video provides an overview of the entire course.

Preview 01:36

Before learning about how to define and use protocols, In this video we will start by exploring what protocols are in Swift.

Exploring Protocols
03:27

In this video, you will be shown how to define and conform to your own protocols.

Defining and Conforming to Protocols
07:45

In this video, you will be shown how to extend protocols.

Extending Protocols
06:33

In this video, we will be covering some of the great advantages of using protocols in your code.

Why Use Protocols?
07:12

In this video, you will be shown how to use protocols as types.

Using Protocols as Types
05:24
+
Advanced Protocol Requirements
4 Lectures 30:34

In this video, you will learn about mutating protocol requirements as well as class-bound protocols.

Preview 14:14

In this video, you will be shown how to define initialiser requirements.

Initialiser Requirements
06:02

In this video, you will be shown how to define optional protocol requirements.

Optional Requirements
04:08

In this video, you will be shown how to implement a workaround for adding stored properties to conforming types in protocol extensions.

Stored Properties in Protocol Extensions
06:10
+
Advanced Protocols
4 Lectures 25:33

In this video, you will learn about associated type requirements in protocols.

Preview 08:16

In this video, you will be shown how to use Self requirements in protocols, as well as the Self metatype in protocol extensions.

Self Requirements
07:07

In this video, you will be shown how to define operator protocol requirements.

Operator Requirements
04:38

In this video, you will be shown how to constrain protocol extensions so that they only apply to specific conforming types.

Where Clauses in Extensions
05:32
+
Generic Programming with Protocols
4 Lectures 44:18

In this video, you will be introduced to Generics.

Preview 11:35

In this video, you will be shown how to use protocols with generic placeholders.

Using Protocols with Generic Functions
09:48

In this video, you will be shown how to refine extensions on generic types.

Using Protocols to Refine Extensions on Generic Types
09:30

In this video, you will be shown how to use the standard library protocols Equatable, Comparable & Hashable. 

Equatable, Comparable, and Hashable
13:25
About the Instructor
Packt Publishing
3.9 Average rating
8,229 Reviews
58,946 Students
687 Courses
Tech Knowledge in Motion

Packt has been committed to developer learning since 2004. A lot has changed in software since then - but Packt has remained responsive to these changes, continuing to look forward at the trends and tools defining the way we work and live. And how to put them to work.

With an extensive library of content - more than 4000 books and video courses -Packt's mission is to help developers stay relevant in a rapidly changing world. From new web frameworks and programming languages, to cutting edge data analytics, and DevOps, Packt takes software professionals in every field to what's important to them now.

From skills that will help you to develop and future proof your career to immediate solutions to every day tech challenges, Packt is a go-to resource to make you a better, smarter developer.

Packt Udemy courses continue this tradition, bringing you comprehensive yet concise video courses straight from the experts.