-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
  • 1,951
  • 2
  • 16
  • 32

1 Answers1

1

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

Dávid Pásztor
  • 45,571
  • 9
  • 73
  • 100