Geek Culture
Published in

Geek Culture

Lazy Properties in Swift

Swift language allows you to create several different types of properties, including computed, property observers and even lazy properties. In this article, we will learn how lazy properties can provide performance benefits for time consuming calculations.

Implementation

Let’s consider a scenario, where we are responsible for creating questions for an exam. The Exam struct is…

--

--

--

A new tech publication by Start it up (https://medium.com/swlh).

Recommended from Medium

App Tracking Transparency

Options to expose flows in Field Service App

Google Maps Integration iOS Swift. Part 1

Let’s learn flutter!!

The Unbroken iOS COVIDSafe application

Colorizing Xcode Logs to Improve Log Tracing

Builder Pattern iOS Swift

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Mohammad Azam

Mohammad Azam

iOS Developer, speaker and educator. Top Udemy and LinkedIn instructor. Lead instructor at DigitalCrafts. https://www.udemy.com/user/mohammad-azam-2/

More from Medium

Music Bars in iOS using Swift 5.0

SplitView controller in Xcode 12 and Swift 5

Classes vs Struct — Swift

MVVM Explained With a Simple iOS App