Leo Leo - 2 months ago 12
iOS Question

Word "func" is underlined with dashes but no error

This is not a major question. But, I don't know from where it comes. I've got like below image,

enter image description here

And I don't know from where this underlining is coming. As I said in the title it's not a warning or an error, but I find it's strange and that bothers me. Does anyone knows how to get rid of it?

Answer Source

This sometimes happens for me when SourceKit crashed or symbolication does not work for some other reason.

What I usually do is close the file (command + shift + w) and reopen it. If this does not help restarting Xcode often makes the problem go away.