4

For example, if I'm inside a closure and I say,

... { response, data, error in 
...
}

Is there a way for me to view the types of response, data, and error very quickly?

Right now, the only way I can do this without doing a println and building my code is saying

var test = response as! Int

or a ridiculous downcast that's obviously going to display as an error. I look and see it says, "NSURLResponse is not convertible to type int" and that way I know. But this is really inefficient. Is there any way to do this at all in Xcode, even if it isn't specifically a closure and you just want to see the type of the variable.

rb612
  • 5,280
  • 3
  • 30
  • 68

1 Answers1

7

Alt-click on the variable does the thing in my case most of the time.

0x416e746f6e
  • 9,872
  • 5
  • 40
  • 68