What are Type properties in Swift?

Instance properties are properties that belong to particular instance of type. We can also define type properties that belong to the type itself. There will be only one copy of these properties irrespective of number of instance of this type. All the instances will have access to same property value. Type properties can have both stored and computed properties.

More about type property syntax with example…

Querying and setting type properties with example…

Leave a Reply