Swift: Read only computed property

When a computed property has only a getter not a setter, that property is called read-only computed property. This type of computed property always returns a value and cannot be set to different value. Such values can be accessed through dot syntax.

Advertisements

Leave a Reply