Full Decent Full Decent - 5 months ago 15
Swift Question

How to view just the public API "header" of a Swift file?

I am now programming in Swift to edit the file/class

Chicken.swift
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 I can RTFM. But instead of just getting the public api part that I am interested in, I get all the private crap and implementation details.

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

Where does such information now exist for Swift development in XCode?

Answer

example

How about using counterparts option