All about Properties in swift

Abhimuralidharan
6 min readMay 29, 2017
just an illustration from somewhere :p

First , let me talk about a property . Suppose if we need to change or access an iVar in your class using an object of your class, then there should be getter and setter methods assigned to the iVar. A property is used mainly when other objects need to change or access the ivars in your object, without manually defining getters and setters, or using @property (in objective - c).

--

--