Swift Automatic Reference Counting

How Swift ARC works?

Swift uses ARC to handle memory management. It increases reference count when an instance is owned by another instance, and automatically frees up the memory when there is no owner left. No explicit code required. Just have to avoid reference cycle.