Module 01 Β· Swift Basics β Lesson 2 of 5 Β· ~11 min
Strings & Interpolation
Text, and how to build it
A String is text: characters between double quotes, like "Mochi". PawWalk is full of them β dog names, walker bios, neighborhood names, error messages.
The single most-used String feature in Swift is string interpolation: put \(someValue) inside the quotes, and Swift drops the value into the text right there. It works with any value β a constant, a variable, even a calculation.
You will type \( β¦ ) hundreds of times in this course. It's how almost every label in the PawWalk UI gets its text.