A light-weight general-purpose library to help represent situations where the type of a value is one of a set of types. An alternative to type erasure.
-
Updated
Sep 11, 2025 - Swift
A light-weight general-purpose library to help represent situations where the type of a value is one of a set of types. An alternative to type erasure.
Tech blog about Put Generic Protocol as Variable Type. How Combine Publisher put into AnyPublisher
UITableViewCell Provider Approach
A package for automating Swift type erasure
Create dynamic and modern collections effortlessly without relying on enums with AnyLayout.
Package for opening existentials with ease
Swift Type erasure playground
Lightweight and type-safe reactive signal system for modern Swift apps. Built with concurrency, Combine interop, and real-time UX in mind
The 11th project of "100 Days of SwiftUI" tutorial course from Paul Hudson's "Hacking with Swift" website. A book reader's companion app. Complete project, including solutions to all the challenges (+ Project 15).
Swift 5.0 playground with a cautionary example of a type-erasing wrapper along with detailed discussion
Automagic conformance to `UnsignedInteger` for your number types
Add a description, image, and links to the type-erasure topic page so that developers can more easily learn about it.
To associate your repository with the type-erasure topic, visit your repo's landing page and select "manage topics."