Closed Hengyu closed 4 months ago
We can use lazy var here to reference self when declare the property.
lazy var
self
As a result, there is no longer need to mark the property as force unwrapped ! and we can use this property as usual.
!
@russell-archer PTAL
Nice idea! Merged - thank you!
We can use
lazy var
here to referenceself
when declare the property.As a result, there is no longer need to mark the property as force unwrapped
!
and we can use this property as usual.