Skip to content

Glossary: Swift Beyond the Basics

access control

Also written: public, internal, fileprivate, private

Rules that decide which code can see a name. `public` is visible to any importing module, `internal` (the default) only inside the module, `fileprivate` only in the file, and `private` only in the type and its same-file extensions. In OrderKit, `quote` must be `public` so the `kc` tool can call it.

Where the book teaches it

Related terms

module@testable import