Understanding Associated Value Enums Why there are associated value enums in Swift? I mean, why the Swift core team designed associated value enum? To understand it, firstly, let's take a look at the following example in C: The C struct Device represents a device. The member pointer is an…