Getting Started with Protocols in Swift

Course

Online

£ 150 + VAT

Description

  • Type

    Course

  • Methodology

    Online

  • Start date

    Different dates available

An introduction to Swift protocols with step-by-step instructions on how to create and use them.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 AuthorHamish 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.

Facilities

Location

Start date

Online

Start date

Different dates availableEnrolment now open

About this course

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

Questions & Answers

Add your question

Our advisors and other users will be able to reply to you

Who would you like to address this question to?

Fill in your details to get a reply

We will only publish your name and question

Reviews

This centre's achievements

2021

All courses are up to date

The average rating is higher than 3.7

More than 50 reviews in the last 12 months

This centre has featured on Emagister for 4 years

Subjects

  • Writing
  • Property
  • Protocol
  • Access
  • Information Systems
  • Information Systems management
  • IT
  • Management
  • Organizational Skills
  • Management Planning

Course programme

Get to Know Your Protocols 6 lectures 32:00 The Course Overview This video provides an overview of the entire course. Exploring Protocols Before learning about how to define and use protocols, In this video we will start by exploring what protocols are in Swift. • A brief overview of what protocols are • The various declarations that a protocol can require • An example of the wide range of protocols in the standard library Defining and Conforming to Protocols In this video, you will be shown how to define and conform to your own protocols. • How to declare different requirements in a protocol • What the get and set declarations mean for property and subscript requirements • Access level rules for conforming to requirements Extending Protocols In this video, you will be shown how to extend protocols. • Writing implementations that can be used on any type of conforming protocol • Creating default implementations for protocol requirements • How to refer to other protocol requirements and extension implementations within a protocol extension Why Use Protocols? In this video, we will be covering some of the great advantages of using protocols in your code. • Encourages the use of value types • Provide functionality for all types that conform to the protocol through protocol extensions • Not monolithic and you can retroactively conform types to protocols Using Protocols as Types In this video, you will be shown how to use protocols as types. • Using protocol types to express any type that conforms to a single protocol • Using protocol types to express any type that conforms to multiple protocols • Using existential metatypes to express any metatype for a given type that conforms to one or more protocols Get to Know Your Protocols 6 lectures 32:00 The Course Overview This video provides an overview of the entire course. Exploring Protocols Before learning about how to define and use protocols, In this video we will start by exploring what protocols are in Swift. • A brief overview of what protocols are • The various declarations that a protocol can require • An example of the wide range of protocols in the standard library Defining and Conforming to Protocols In this video, you will be shown how to define and conform to your own protocols. • How to declare different requirements in a protocol • What the get and set declarations mean for property and subscript requirements • Access level rules for conforming to requirements Extending Protocols In this video, you will be shown how to extend protocols. • Writing implementations that can be used on any type of conforming protocol • Creating default implementations for protocol requirements • How to refer to other protocol requirements and extension implementations within a protocol extension Why Use Protocols? In this video, we will be covering some of the great advantages of using protocols in your code. • Encourages the use of value types • Provide functionality for all types that conform to the protocol through protocol extensions • Not monolithic and you can retroactively conform types to protocols Using Protocols as Types In this video, you will be shown how to use protocols as types. • Using protocol types to express any type that conforms to a single protocol • Using protocol types to express any type that conforms to multiple protocols • Using existential metatypes to express any metatype for a given type that conforms to one or more protocols The Course Overview This video provides an overview of the entire course. The Course Overview This video provides an overview of the entire course. The Course Overview This video provides an overview of the entire course. The Course Overview This video provides an overview of the entire course. This video provides an overview of the entire course. This video provides an overview of the entire course. Exploring Protocols Before learning about how to define and use protocols, In this video we will start by exploring what protocols are in Swift. • A brief overview of what protocols are • The various declarations that a protocol can require • An example of the wide range of protocols in the standard library Exploring Protocols Before learning about how to define and use protocols, In this video we will start by exploring what protocols are in Swift. • A brief overview of what protocols are • The various declarations that a protocol can require • An example of the wide range of protocols in the standard library Exploring Protocols Before learning about how to define and use protocols, In this video we will start by exploring what protocols are in Swift. • A brief overview of what protocols are • The various declarations that a protocol can require • An example of the wide range of protocols in the standard library Exploring Protocols Before learning about how to define and use protocols, In this video we will start by exploring what protocols are in Swift. • A brief overview of what protocols are • The various declarations that a protocol can require • An example of the wide range of protocols in the standard library Before learning about how to define and use protocols, In this video we will start by exploring what protocols are in Swift. • A brief overview of what protocols are • The various declarations that a protocol can require • An example of the wide range of protocols in the standard library Before learning about how to define and use protocols, In this video we will start by exploring what protocols are in Swift. • A brief overview of what protocols are • The various declarations that a protocol can require • An example of the wide range of protocols in the standard library Defining and Conforming to Protocols In this video, you will be shown how to define and conform to your own protocols. • How to declare different requirements in a protocol • What the get and set declarations mean for property and subscript requirements • Access level rules for conforming to requirements Defining and Conforming to Protocols In this video, you will be shown how to define and conform to your own protocols. • How to declare different requirements in a protocol • What the get and set declarations mean for property and subscript requirements • Access level rules for conforming to requirements Defining and Conforming to Protocols In this video, you will be shown how to define and conform to your own protocols. • How to declare different requirements in a protocol • What the get and set declarations mean for property and subscript requirements • Access level rules for conforming to requirements Defining and Conforming to Protocols In this video, you will be shown how to define and conform to your own protocols. • How to declare different requirements in a protocol • What the get and set declarations mean for property and subscript requirements • Access level rules for conforming to requirements In this video, you will be shown how to define and conform to your own protocols. • How to declare different requirements in a protocol • What the get and set declarations mean for property and subscript requirements • Access level rules for conforming to requirements In this video, you will be shown how to define and conform to your own protocols. • How to declare different requirements in a protocol • What the get and set declarations mean for property and subscript requirements • Access level rules for conforming to requirements Extending Protocols In this video, you will be shown how to extend protocols. • Writing implementations that can be used on any type of conforming protocol • Creating default implementations for protocol requirements • How to refer to other protocol requirements and extension implementations within a protocol extension Extending Protocols In this video, you will be shown how to extend protocols. • Writing implementations that can be used on any type of conforming protocol • Creating default implementations for protocol requirements • How to refer to other protocol requirements and extension implementations within a protocol extension Extending Protocols In this video, you will be shown how to extend protocols. • Writing implementations that can be used on any type of conforming protocol • Creating default implementations for protocol requirements • How to refer to other protocol requirements and extension implementations within a protocol extension Extending Protocols In this video, you will be shown how to extend protocols. • Writing implementations that can be used on any type of conforming protocol • Creating default implementations for protocol requirements • How to refer to other protocol requirements and extension implementations within a protocol extension In this video, you will be shown how to extend protocols. • Writing implementations that can be used on any type of conforming protocol • Creating default implementations for protocol requirements • How to refer to other protocol requirements and extension implementations within a protocol extension In this video, you will be shown how to extend protocols. • Writing implementations that can be used on any type of conforming protocol • Creating default implementations for protocol requirements • How to refer to other protocol requirements and extension implementations within a protocol extension Why Use Protocols? In this video, we will be covering some of the great advantages of using protocols in your code. • Encourages the use of value types • Provide functionality for all types that conform to the protocol through protocol extensions • Not monolithic and you can retroactively conform types to protocols Why Use Protocols? In this video, we will be covering some of the great advantages of using protocols in your code. • Encourages the use of value types • Provide functionality for all types that conform to the protocol through protocol extensions • Not monolithic and you can retroactively conform types to protocols Why Use Protocols? In this video, we will be covering some of the great advantages of using protocols in your code. • Encourages the use of value types • Provide functionality for all types that conform to the protocol through protocol extensions • Not monolithic and you can retroactively conform types to protocols Why Use Protocols? In this video, we will be covering some of the great advantages of using protocols in your code. • Encourages the use of value types • Provide functionality for all types that conform to the protocol through protocol extensions • Not monolithic and you can retroactively conform types to protocols In this video, we will be covering some of the great advantages of using protocols in your code. • Encourages the use of value types • Provide functionality for all types that conform to the protocol through protocol extensions • Not monolithic and you can retroactively conform types to protocols In this video, we will be covering some of the great advantages of using protocols in your code. • Encourages the use of value types • Provide functionality for all types that conform to the protocol through protocol extensions • Not monolithic and you can retroactively conform types to protocols Using Protocols as Types In this video, you will be shown how to use protocols as types. • Using protocol types to express any type that conforms to a single protocol • Using protocol types to express any type that conforms to multiple protocols • Using existential metatypes to express any metatype for a given type that conforms to one or more protocols Using Protocols as Types In this video, you will be shown how to use protocols as types. • Using protocol types to express any type that conforms to a single protocol • Using protocol types to express any type that conforms to multiple protocols • Using existential metatypes to express any metatype for a given type that conforms to one or more protocols Using Protocols as Types In this video, you will be shown how to use protocols as types. • Using protocol types to express any type that conforms to a single protocol • Using protocol types to express any type that conforms to multiple protocols • Using existential metatypes to express any metatype for a given type that conforms to one or more protocols Using Protocols as Types In this video, you will be shown how to use protocols as types. • Using protocol types to express any type that conforms to a single protocol • Using protocol types to express any type that conforms to multiple protocols • Using existential metatypes to express any metatype for a given type that conforms to one or more protocols In this video, you will be shown how to use protocols as types. • Using protocol types to express any type that conforms to a single protocol • Using protocol types to express any type that conforms to multiple protocols • Using existential metatypes to express any metatype for a given type that conforms to one or more protocols In this video, you will be shown how to use protocols as types. • Using protocol types to express any type that conforms to a single protocol • Using protocol types to express any type that conforms to multiple protocols • Using existential metatypes to express any metatype for a given type that conforms to one or more protocols Advanced Protocol Requirements. 4 lectures 30:34 Mutating Requirements and Class-bound Protocols In this video, you will learn about mutating protocol requirements as well as class-bound protocols. • Mutating requirements allow you to control when conforming value types can mutate themselves • Class-bound protocols allow conforming types to be restricted to classes • Class-bound protocols give you reference semantics for protocol-typed instances Initialiser Requirements In this video, you will be shown how to define initialiser requirements he Flexibility of choosing what types to use for a given requirement • Protocols with associated types cannot be used as types Associated Type Requirements In this video, you will learn about associated type requirements in protocols. ...

Additional information

protocols in Swift and basics of what protocols are

Getting Started with Protocols in Swift

£ 150 + VAT