Skip to content

Glossary: Swift Basics

private

Also written: private(set)

`private` hides a property or method from code outside its type. `private(set)` lets outside code read a property but not change it.

Where the book teaches it

Related terms

classstruct