Use NSCopy() to Duplicate Objects in Swift

That is copy, not reference

Steven Curtis

--

Photo by Duy Pham on Unsplash

Copying objects (reference types) is quite often challenging. How are you supposed to make sure they copy properly if you are using Boxing?

Enter NSCopy()

Difficulty: Beginner | Easy | Normal | Challenging

Prerequisites:

--

--