Thracian
Thracian

Reputation: 66869

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

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?

Upvotes: 4

Views: 2049

Answers (2)

B25Dec
B25Dec

Reputation: 2377

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

Upvotes: 6

Sweeper
Sweeper

Reputation: 271820

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

Upvotes: 9

Related Questions