This blog post explains how Apple's memory management in Swift. Even if it gets handled mostly automatic there are still some pitfalls. Choosing the correct reference type to describe the relationship between objects help you to avoid memory leaks. Automatic Reference Counting Apple's implementation...