Type Erasing in Swift
Understanding the Erasing Type
Swift’s type system is (mostly) fantastic. Its tight constraints and flexible generics allow developers to express complicated concepts in an extremely safe manner because the Swift compiler will detect and flag any inconsistencies within the types in your program.
While this is great most of the time, there are times where Swift’s strict typing…