Lazy properties in Swift
The lazy
keyword in Swift allows you to delay the initialisation of a stored property until it is needed. The benefit of this approach can be an increase in performance as potentially expensive processes can be avoided during start up if they are not immediately required.