-3

I am using the following syntax to debug my Objective C code, getting the class name. What is the equivalent in SWIFT?

NSlog (@"Classe = %@",[self class]);
Ing. Ron
  • 2,005
  • 2
  • 17
  • 33

1 Answers1

1

You can use print("Class = \(type(of: self))" in Swift.

Dávid Pásztor
  • 51,403
  • 9
  • 85
  • 116