Before diving into weak references in arrays, let's quickly explain what they are. In Swift, a weak reference is a type of pointer that doesn't hold a strong reference to the object it points to. This means that the object can be deallocated by the system if there are no other strong references to it. Weak references are ideal for situations where you don't want to retain an object for the lifetime of the program, but only need a reference to it temporarily.
var weaky: [Weak<Stuff>] =
[Weak(value: Stuff()), Weak(value: Stuff())]
здесь разве сразу же не высвободится память? Есть только слабая ссылка внутри класса Weak на Stuff