How a “lazy var” can be instantiated twice
Explore how lazy stored properties in Swift can go wrong and cause weird bugs
What are Lazy Stored Properties?
Swift “Lazy stored properties” (
lazy var) is a powerful feature that can help improve app performance by deferring expensive property initialization until when it is actually used…