In languages such as C, C++, ObjC, C#, etc... you have headers you can give 
to others (along with compiled object code - i.e. a library) so they can use 
your code, but not see the internals. In swift though, there are no (separate) 
headers. i.e. if I File | New File... -> iOS -> Cocoa Touch Class (or even just 
Swift file), all I get is just the *.swift file, but nothing else.
  If I wanted to make a dandy library of classes, how would I give them to 
someone else once I was done, without exposing everything in the swift 
implementation? Is there some magic tool that'll make a swift file that has 
only (public) interface information? My guess is yes, since I occasionally run 
into these when using the assistant editor pane; sometimes it'll give me 
something like that, instead of the .swift file associated with the view 
controller selected in the IB pane.



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (Xcode-users@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to