Guest User

Untitled

a guest
Oct 15th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. // 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.
  2. public var publicVariable = 0
  3. // enables entities to be used within any source file from their defining module, but not in any source file outside of that module.
  4. internal let internalConstant = 1
  5. // access restricts the use of an entity to its own defining source file.
  6. fileprivate var fileprivateVariable = 2
  7. // restricts the use of an entity to the enclosing declaration, and to extensions of that declaration that are in the same file.
  8. private let privateConstant = 3
Add Comment
Please, Sign In to add comment