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
var identifier: String {
get {
return getAssociatedValue(key: "identifier", object: self, initialValue: "Unknown")
}
set {
set(associatedValue: newValue, key: "identifier", object: self)
}
}
"identifier" in both get and set should have different memory addresses since they are two different objects. So how is it able to retrieve the previously stored value?