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
Mar 27, 2024 - 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
Swift 5.0 playground with a cautionary example of a type-erasing wrapper along with detailed discussion
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).
UITableViewCell Provider Approach
A package for automating Swift type erasure
Create dynamic and modern collections effortlessly without relying on enums with AnyLayout.
Automagic conformance to `UnsignedInteger` for your number types
Swift Type erasure playground
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."