Reputation: 5153
I am at a loss and I give up - what does a header file look like in swift? How can I have a header with a variable, say 'exampleHeaderStr:String = "how do I...?"' ?
Upvotes: 0
Views: 370
Reputation: 1354
There's no such thing as header files in swift. You declare all variables in the implementation, marking them as private or internal or public. See the swift intro guide: https://developer.apple.com/library/ios/documentation/Swift/Conceptual/Swift_Programming_Language/TheBasics.html#//apple_ref/doc/uid/TP40014097-CH5-ID309
Upvotes: 1