Section 23: Access Control


Access control in Swift defines the scope of individual modules. Modules are divided into three categories, public, internal or private. This is used for example to hide the implementation of types but provide a public application programming interface ( API ) for other developers to develop using the code that you provide within an application.

Access control resource sheet

Posted in Chapter 2: Language Guide