iOS App Dev Tutorials
  • Home
  • Swift
  • SwiftUI
  • Resources
  • Latest News
  • Apple Intelligence
Sign in Subscribe

Mutating Methods

A collection of 1 post
Mutating Methods in Swift
Swift

Mutating Methods in Swift

In Swift, structures (and enumerations) are value types. By default, the properties of a value type cannot be modified within its instance methods. However, there are scenarios where you might want to modify the properties of a structure within its instance methods. To facilitate this, Swift provides the mutating keyword.
Mar 3, 2024 2 min read
Page 1 of 1
iOS App Dev Tutorials © 2025
Powered by Ghost