You’ve made it to the end of the seventh part of this series, so let’s summarize:
selfconstant to refer to the current instance of a struct inside a method.
lazykeyword tells Swift to create properties only when they are first used.
SPONSORED Are you tired of wasting time debugging your Swift app? Instabug’s SDK is here to help you minimize debugging time by providing you with complete device details, network logs, and reproduction steps with every bug report. All data is attached automatically, and it only takes a line of code to setup. Start your free trial now and get 3 months off exclusively for the Hacking with Swift Community.
Link copied to your pasteboard.