Getting Started with Protocols in Swift [Video]

Preview in Mapt

Getting Started with Protocols in Swift [Video]

Hamish Knight

Effective, flexible and maintainable code using the power of Swift protocols
Mapt Subscription
FREE
$29.99/m after trial
Video
$25.00
RRP $124.99
Save 79%
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$25.00
$29.99 p/m after trial
RRP $124.99
Subscription
Video
Start 14 Day Trial

Frequently bought together


Getting Started with Protocols in Swift [Video] Book Cover
Getting Started with Protocols in Swift [Video]
$ 124.99
$ 25.00
Getting Started with Dynamics 365 Customer Engagement [Video] Book Cover
Getting Started with Dynamics 365 Customer Engagement [Video]
$ 124.99
$ 25.00
Buy 2 for $35.00
Save $214.98
Add to Cart

Video Details

ISBN 139781788396967
Course Length2 hours 12 minutes

Video Description

Used 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
Introduction to generics
Using Protocols with Generics
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
Introduction to generics
Using Protocols with Generics
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

Getting Started with Dynamics 365 Customer Engagement [Video] Book Cover
Getting Started with Dynamics 365 Customer Engagement [Video]
$ 124.99
$ 25.00
Getting Started with Clean Code Java SE 9 [Video] Book Cover
Getting Started with Clean Code Java SE 9 [Video]
$ 124.99
$ 25.00
Hands-on Application Development with ASP.NET Core and Angular [Video] Book Cover
Hands-on Application Development with ASP.NET Core and Angular [Video]
$ 124.99
$ 25.00
ARP Spoofing and Man In The Middle Attacks: Execution and Detection [Video] Book Cover
ARP Spoofing and Man In The Middle Attacks: Execution and Detection [Video]
$ 49.99
$ 10.00
Hands-On Full-Stack Development with Swift Book Cover
Hands-On Full-Stack Development with Swift
$ 35.99
$ 18.00
Master Hibernate and JPA with Spring Boot in 100 Steps [Video] Book Cover
Master Hibernate and JPA with Spring Boot in 100 Steps [Video]
$ 196.99
$ 39.40