How do you find out the type of an object (in Swift)?

Swift 3 version:

type(of: yourObject)

Leave a Comment