Why do I get the following behaviour in playground?
class A {
}
class B {
weak var theA: A?
}
let a = A()
_getRetainCount(a) // output is 2 . OK.
var b = B()
b.theA = a
_getRetainCount(a) // output is 3 . WHY?.
As you can see the reference in class B is weak to the A object but playground somehow increases this count.
This doesn't happen in a normal project.