Glossary: Swift Beyond the Basics
mutating
Marks a struct method, or a protocol requirement, that changes the value. Classes don't need it.
Glossary: Swift Beyond the Basics
Marks a struct method, or a protocol requirement, that changes the value. Classes don't need it.