• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
exposing only what you want - headers and Swift?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: exposing only what you want - headers and Swift?
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: iOS Xcode 7.3. If I'm telling it to build for 8.0, why is it reporting that it's built for 8.3
  • Next by Date: Re: exposing only what you want - headers and Swift?
  • Previous by thread: Re: iOS Xcode 7.3. If I'm telling it to build for 8.0, why is it reporting that it's built for 8.3
  • Next by thread: Re: exposing only what you want - headers and Swift?
  • Index(es):
    • Date
    • Thread