Mastering Generics with Example in iOS and Swift

Learn iOS generics by example

Generics are the most powerful features in iOS and Swift. Generics allow you to generalize and reuse code in ways that would be impossible otherwise.

What you’ll learn

  • Students will learn Generics.
  • Students will learn Generics and its use in Protocols and Enums.
  • Students will learn advanced concept of iOS and Swift platform.

Course Content

  • Introduction –> 1 lecture • 4min.
  • Generics –> 3 lectures • 36min.
  • Generics with Protocols and Enums –> 2 lectures • 27min.
  • Advanced Generic Objects –> 5 lectures • 1hr 21min.

Mastering Generics with Example in iOS and Swift

Requirements

  • Basics of Swift.
  • Basics of iOS.
  • Basics of Xcode.

Generics are the most powerful features in iOS and Swift. Generics allow you to generalize and reuse code in ways that would be impossible otherwise.

Generics can be confusing but once you understand the concept, they will become your most trusted allies in Swift programming. Generics are quite an advanced features of iOS and iOS uses generics extensively. This guide is for you to understand generics from the most basic example to their use at the enterprise level app.

Learning Objectives:

– Why do we need Generics?

 

– What is a placeholder type in Generics?

 

– Creating first Generic function

 

– Type Constraints in Generics with Protocols

 

– Creating custom Generic type constraint

 

-Associated type in generics

 

– Generics in Protocols

 

– Generics in Enums

 

– Custom Collection Data Structure using Generics

 

– Discussion on how Swift Compiler handles Generics

 

– Generics to make everyday repeated task easy (Enterprise level application examples)

 

– Generic Network Manager

– Generic TableView