How can you find all references to a Swift class variable in Xcode?
The answers I've seen (such as the selected answer of Finding all references of a variable or a method in Xcode4) are only applicable to Objective C.
Control-click on the symbol and click Find > Find Selected Symbol in Workspace.
In Xcode you can find references of the variable Find >References >Matching in Find Navigator in Left Navigator But be careful it will give you all the references matching the variable name so you must to be careful with that, until now this feature not implemented in a good way to find the references like other IDE's.
This is the most efficient way you can do until now.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With