Swift: Associate a tuple to a enum

59 Views Asked by At

Is there a way to associate a tuple to a enum?

For example:

typealias MyTuple = (Int, String)

enum A: MyTuple {
   case .Foo = (1, "Bazz")
}

I get the error 'A does not conform RawRepresentable'

0

There are 0 best solutions below