Skip to content

Glossary: Swift Beyond the Basics

mutating

Marks a struct method, or a protocol requirement, that changes the value. Classes don't need it.

Where the book teaches it

Related terms

protocol-oriented design