Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

xcode

swift

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?

like image 685
Thracian Avatar asked Nov 01 '25 02:11

Thracian


1 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
like image 94
Sweeper Avatar answered Nov 02 '25 20:11

Sweeper