Question: what are getters and setters in swift?
Answer: Getters and setters are a part of computed properties. They are close relatives to the property observers didSet and willSet . As you may remember didSet and willSet are there to perform extra tasks when a computed property is about to change or has changed.