Re: Swift Headers (or lack of)
Re: Swift Headers (or lack of)
- Subject: Re: Swift Headers (or lack of)
- From: Jens Alfke <email@hidden>
- Date: Thu, 05 Jun 2014 11:05:57 -0700
On Jun 5, 2014, at 8:43 AM, Gordon Apple < email@hidden> wrote: I have not yet downloaded the new stuff, so maybe this is handled in xcode, but my next question is what about headers for us programmers. If I’m using a class from elsewhere, I don’t want to be looking at a massive implementation file. Is there a provision for just displaying the public definitions?
Just as with Objective-C, you Command-click on an identifier like a class name, and Xcode will open its interface. In the case of Swift, it synthesizes a source file (with no method bodies, of course, just declarations) and opens that. Option-click probably works too, if the class has documentation.
Presumably there’s also some command-line way to generate these interface-only source files, but I haven’t had a chance to experiment yet.
—Jens |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden