iOS Dev 14: Generics for Code Reusability | Swift 5, XCode 11

Опубликовано: 05 Октябрь 2024
на канале: Emmanuel Okwara
1,797
87

Today we learn about Generics and how we can avoid code duplication using this concept.

In this video, we create a Generic function for adding two numbers.
We also see how to create a Generic struct to accept different types of data.

Say Hi on Social Media:
LinkedIn:   / emacco  
Twitter:   / its_macco  

Additional Resources:
https://docs.swift.org/swift-book/Lan...