The Startup
Published in

The Startup

A Tour of Generic Programming in the Mentorship iOS App

Using Generics and Protocols to write better code in Swift

Hi everyone,

In this post, I give a tour of how we’re using Generic programming in an open-source SwiftUI project (Mentorship iOS) to write better code for Networking and UI.




Get smarter at building your thing. Follow to join The Startup’s +8 million monthly readers & +756K followers.

Recommended from Medium

Update on #Hyprr with an overview of a new Video Preview feature and the updated AI.

Understanding Attribution in the World of iOS 14.5

How to make XCFramework / Fat Framework in Xcode

Create your own CocoaPods library

Swift Creating Custom Neumorphic View using UIKit

Missing rules for App Coordinator

iOS 14: What’s new and how will it impact ASO — ASO Blog

Async-await with Swift and Combine

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Yugantar Jain

Yugantar Jain

Apple Developer | Environmentalist

More from Medium

Concurrency in Swift: Avoiding the Pitfalls

GitHub Actions for iOS

Core Data — Building a Custom Store

Detecting Memory Leaks in iOS