Swift question: I need to map a dictionary’s values to a struct’s attributes. Assume the dictionary is a flat [String:Any] (Any is a simple type), as are the struct’s attributes.
Is there a way to do it? Thanks
#swift #xcode
Swift question: I need to map a dictionary’s values to a struct’s attributes. Assume the dictionary is a flat [String:Any] (Any is a simple type), as are the struct’s attributes.
Is there a way to do it? Thanks
#swift #xcode