exposing only what you want - headers and Swift?
exposing only what you want - headers and Swift?
- Subject: exposing only what you want - headers and Swift?
- From: William Squires <email@hidden>
- Date: Sat, 25 Jun 2016 14:48:32 -0500
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden