🧩 Strings Are Value Types
Swift’s String type is a value type. In each case, a new copy of the existing String value is created, and the new copy is passed or assigned, not the original version.
Swift’s String type is a value type. In each case, a new copy of the existing String value is created, and the new copy is passed or assigned, not the original version.