Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // enable entities to be used within any source file from their defining module, and also in a source file from another module that imports the defining module.
- public var publicVariable = 0
- // enables entities to be used within any source file from their defining module, but not in any source file outside of that module.
- internal let internalConstant = 1
- // access restricts the use of an entity to its own defining source file.
- fileprivate var fileprivateVariable = 2
- // restricts the use of an entity to the enclosing declaration, and to extensions of that declaration that are in the same file.
- private let privateConstant = 3
Add Comment
Please, Sign In to add comment