Swift Arrays Holding Elements With Weak References

Marco Santarossa looks at memory management in Swift, detailing how we can use NSPointerArray to store weak references to Swift classes.