Is there a way to keep a type as generic in Swift? I don’t know or care that the identifier types would be — they can stay generic. I tried specifying <Any, Any>
, <AnyHashable, AnyHashable>
and <Hashable, Hashable>
and none of these work.
Is there a way to keep a type as generic in Swift? I don’t know or care that the identifier types would be — they can stay generic. I tried specifying <Any, Any>
, <AnyHashable, AnyHashable>
and <Hashable, Hashable>
and none of these work.