How to use Lazy in Swift

Head to https://squarespace.com/seanallen to save 10% off your first purchase of a website or domain using code SEANALLEN.

In today’s video we discuss the Swift keyword, Lazy. I’ll tell you what the keyword means, how to use it and when to use it. We’ll also discuss a common pitfall of using “lazy” too much in your codebase.

This tutorial was done using Swift 5.1 and Xcode 11.3.

Lazy Documentation:
https://docs.swift.org/swift-book/LanguageGuide/Properties.html

If you like my teaching style, I’ve released my first iOS dev course which is all about the take-home project job interview for iOS developers.
Course Info – https://seanallen.teachable.com/

Link to my book – How I Became an iOS Developer:
https://gumroad.com/l/sean-allen-origin

Hired.com:
https://hired.com/x/1n01g

Check out my podcast, iOS Dev Discussions:
https://itunes.apple.com/us/podcast/ios-dev-discussions-sean-allen/id1426167395?mt=2

Are you a gamer? I’m streaming video games on Twitch:
twitch.tv/seanallen

Book and learning recommendations that help out the channel if you decide to purchase (Affiliate Links):

Ray Wenderlich Books:
https://store.raywenderlich.com/a/20866/link/1

Ray Wenderlich Videos:
https://store.raywenderlich.com/a/20866/link/24

Paul Hudson’s Hacking With Swift:
https://gumroad.com/a/762098803

Learn Advanced Swift Here:
https://gumroad.com/a/656585843

Links to my iOS Dev Setup & iOS Dev Book Recommendations
https://www.amazon.com/shop/seanallen

Personal Links:

Twitter:
https://twitter.com/seanallen_dev

Instagram:
@seanallen_dev

#swift #softwaredeveloper #iosdeveloper

Post Author: hatefull