What is the replacement of __PRETTY_FUNCTION__ in Swift?

196 Views Asked by At

In objective C, we are using like:

XCTFail("%s", __PRETTY_FUNCTION__);

what is the replacement of this when writing test cases in Swift?

1

There are 1 best solutions below

0
On BEST ANSWER

In Swift, use "\(#function)" to replace __PRETTY_FUNCTION__