Use the === operator, from the Swift documentation:
Swift also provides two identity operators (=== and !==), which you use to test whether two object references both refer to the same object instance.
Use the === operator, from the Swift documentation:
Swift also provides two identity operators (=== and !==), which you use to test whether two object references both refer to the same object instance.