What makes a property a computed property in Swift
问题 Let's started with the code snippet: St Foo { var proA: Int = 0 { // needs initialization willSet { print("about to set proA to \(newValue) from \(proA)") } didSet { print("already set proA to \(proA) from \(oldValue)") } } var ProB: Int { // do not needs initialization return 1 } } let foo = Foo() foo.proA = 23 print(foo.ProB) Here are some of my personal understandings about the the stored and computed property: a: Property with only the observer (willSet and didSet) is not a computed