In Java, any objects could be added to the List. It was very convenient to create a class with different fields (integers, strings, bitmaps, arrays, etc.), and then list the objects of this class. And you could quickly access any object in the list.
It was convenient for example when creating a news feed. I get information about the posts from the server. I post each post in a new object, where each type of information has its own field, for example, the name of the author of the post, the link to the avatar, the text of the post, etc. And I list objects. And if necessary, I refer to a particular object (post) and get the necessary information or change it.
I recently switched to swift and cannot find an alternative to a similar interface of collections there. Tell me if he is?