How to view only the public Swift file API header?

Now I program in Swift to edit the Chicken.swift file / class, and I need to refer to the public api for Food.swift . Because the Chicken wants to eat Food.

So, I click on Food.swift so that I can RTFM. But instead of just getting the public api part that interests me, I get all the private details and implementation details.

It is inefficient. Back in C / Objective-C / C ++, I would just click on the .h file to get only the details that I need.

Where does this information now exist for developing Swift in Xcode?

+6
source share
1 answer

example

How to use counterparts option

+6
source

All Articles