You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The math isn't particularly expensive, so using a computed variable is probably good enough. If we really want to lazily load the celsius value, we can do so with a private lazy var, which the computed variable calls/returns.
The text was updated successfully, but these errors were encountered:
The problem with a
lazy var
is you can overwrite it:Tropos/Tropos/Models/Temperature.swift
Lines 19 to 21 in 877990c
The math isn't particularly expensive, so using a computed variable is probably good enough. If we really want to lazily load the celsius value, we can do so with a
private lazy var
, which the computed variable calls/returns.The text was updated successfully, but these errors were encountered: