I created a new target and added a class with the access modifier "Public". But i can't see this class.
From the docs i read "public entities are intended for use as API, and can be accessed by any file that imports the module, e.g. as a framework used in several of your projects." So my guess is that im not importing the module/target?
https://developer.apple.com/swift/blog/?id=5 https://developer.apple.com/library/ios/documentation/Swift/Conceptual/Swift_Programming_Language/AccessControl.html
public accessor control doesn't mean "public across target", it means public in "linked object files".
You need to select your FooClass.swift
file and on the right in the File inspector
, there is a Target Membership
, you should check all the target that you want the file to be used.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With