Skip to content

Instantly share code, notes, and snippets.

View marcosrocha85's full-sized avatar
🤓

Marcos Rocha marcosrocha85

🤓
View GitHub Profile
@marcosrocha85
marcosrocha85 / AssociatedProtocol.swift
Created October 19, 2021 19:31 — forked from benrudhart/AssociatedProtocol
A Swift protocol that is using an enum with a generic associated type
import Foundation
import UIKit
//: # The problem: Protocol that is using an enum with generic associated type
enum GenericEnum<T> {
case Unassociated
case Associated(T)
}