How to compute property values dynamically – Swift for Complete Beginners