Computed Properties in Swift

Опубликовано: 12 Октябрь 2024
на канале: life michael
1,527
5

The computed property doesn't hold the value itself as it happens with stored property. When referring a computed property for getting its value the getter part of its definition is executed. When referring a computed property for setting its value the setter part of its definition is executed.