Skip to content

Instantly share code, notes, and snippets.

@Pegolon
Last active April 17, 2018 16:13
Show Gist options
  • Save Pegolon/5f4ede320e964b7de8b9551640f3d442 to your computer and use it in GitHub Desktop.
Save Pegolon/5f4ede320e964b7de8b9551640f3d442 to your computer and use it in GitHub Desktop.
class MyClass {}
let anObject = MyClass()
print("The address of anObject is \(ObjectIdentifier(anObject))")
@Pegolon
Copy link
Author

Pegolon commented Feb 8, 2018

Log the hex address of an object in Swift.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment