Reputation: 12979
Are the Swift headers available anywhere? I'd like to dig a bit deeper into some of the classes, but I don't have my Mac with me at the moment. Is there another option to view the Swift language source files?
Upvotes: 1
Views: 512
Reputation: 29946
At the moment, in the Xcode6 beta, the swift "header files" aren't really header files. (i.e. they don't exist on disk in plain text format.) They appear to be getting generated on the fly by Xcode from the *.swiftmodule
and *.swiftdoc
files in the Xcode bundle.
Similarly, the swift declarations for Objective-C libraries appear to be being auto-generated on the fly. To the commenter: I've seen no indication that any of the pre-existing Apple-provided Objective-C libraries have been re-written in swift. Their header files are just being rewritten by Xcode on the fly as swift declarations.
Someone could trivially generate these files and copy and paste them and put them on the web somewhere, but I haven't seen it, and Apple doesn't appear to be publishing them in that way. (NB: This would almost certainly be a violation of their NDA.)
I'd say "keep an eye out"... it's probably only a matter of time.
Upvotes: 4