Last active
May 19, 2021 05:31
-
-
Save yojkim/6ad5b1a67257962d0cf6785b8d5791b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private var _view: UIView? | |
var view: UIView! { | |
get { | |
guard let view = _view else { | |
// force-loading | |
loadView() | |
return _view | |
} | |
} | |
set { | |
_view = newValue | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment