Getting Started with Protocols in Swift [Video]

Getting Started with Protocols in Swift [Video]

This video is included in a Mapt subscription
Hamish Knight

An introduction to Swift protocols with step-by-step instructions on how to create and use them
$0.00
$106.25
$29.99p/m after trial
RRP $124.99
Subscription
Video
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 4,000+ eBooks & Videos
  • 40+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Video Details

ISBN 139781788396967
Course Length2 hours 12 minutes

Video 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.

Style and Approach

This course works step-by-step through protocols and generics in Swift, giving you useful examples of how you can use them in your code.

Table of Contents

Get to Know Your Protocols
The Course Overview
Exploring Protocols
Defining and Conforming to Protocols
Extending Protocols
Why Use Protocols?
Using Protocols as Types
Advanced Protocol Requirements
Mutating Requirements and Class-bound Protocols
Initialiser Requirements
Optional Requirements
Stored Properties in Protocol Extensions
Advanced Protocols
Associated Type Requirements
Self Requirements
Operator Requirements
Where Clauses in Extensions
Generic Programming with Protocols
Defining Protocol Generics
Using Protocols with Generic Functions
Using Protocols to Refine Extensions on Generic Types
Equatable, Comparable, and Hashable

What You Will 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

Authors

Table of Contents

Get to Know Your Protocols
The Course Overview
Exploring Protocols
Defining and Conforming to Protocols
Extending Protocols
Why Use Protocols?
Using Protocols as Types
Advanced Protocol Requirements
Mutating Requirements and Class-bound Protocols
Initialiser Requirements
Optional Requirements
Stored Properties in Protocol Extensions
Advanced Protocols
Associated Type Requirements
Self Requirements
Operator Requirements
Where Clauses in Extensions
Generic Programming with Protocols
Defining Protocol Generics
Using Protocols with Generic Functions
Using Protocols to Refine Extensions on Generic Types
Equatable, Comparable, and Hashable

Video Details

ISBN 139781788396967
Course Length2 hours 12 minutes
Read More

Read More Reviews

Recommended for You

Build your Swift App using Protocols [Video] Book Cover
Build your Swift App using Protocols [Video]
$ 106.25
Building iOS 10 Applications with Swift [Video] Book Cover
Building iOS 10 Applications with Swift [Video]
$ 106.25
Getting Started with Machine Learning with R [Video] Book Cover
Getting Started with Machine Learning with R [Video]
$ 106.25
Getting to Grips with WooCommerce in WordPress [Video] Book Cover
Getting to Grips with WooCommerce in WordPress [Video]
$ 106.25
Getting started with Spring 5.0 [Video] Book Cover
Getting started with Spring 5.0 [Video]
$ 106.25
Getting Started with ArcGIS Mapping [Video] Book Cover
Getting Started with ArcGIS Mapping [Video]
$ 106.25