What are nested types in Swift?

Swift allows us to nest supporting enumerations, classes , structures , properties etc… within the definition of the type they all support. This helps with code readability and easy access to all supporting, inter-related types that revolve around a common base type.

Leave a Reply