Outline or list of declared fields, methods and functions in Xcode

Viewed 1397

I'm an Android developer and started learning Swift and XCode recently. I couldn't find the outline of declared variables, methods. I searched SO and web for list, outline, and structure of declared functions but i got no result. You can see this list on the right of the Eclipse panel as outline and available as structure in Android Studio.

If there is no outline for list of declared, how can i move to definition of a specific function or method if i do not remember the name also if i do.

How do you manage a class hierarchy when a class gets more than 20 functions or methods for instance?

2 Answers

I think this is what you are looking for:

enter image description here

To go to this view, simply click on the rightmost thing on the bar just above the code editor:

enter image description here

In the above picture you should click on "No Selection".

Note that it shows you the "sections" of your code, like "Core Data stack". This can be done by writing comments like this:

// MARK: - XXX XXX XXX

Also you can find this option in below image. Search your class name and it will display all your written function on it. Both way will work. enter image description here

Related