โš–๏ธstored vs. computed

โŒ

Swift โŸฉ type โŸฉ property โŸฉ stored vs. computed

ๅฑฌๆ€ง็‰นๆ€ง
stored
computed

ๆœ‰ๅ„ฒๅญ˜ๅ€ผ

โœ…

โŒ (ๅ€ผๆ˜ฏๅ‹•ๆ…‹่จˆ็ฎ—)

ๅฏ็”จ willSet/didSet

โœ…

โŒ (ๅ€ผๆ˜ฏๅ‹•ๆ…‹่จˆ็ฎ—)

ๅฏ็”จ get/set

โŒ

โœ…

Last updated

Was this helpful?