Skip to content

Glossary: Swift Basics

while loop

Also written: while

A loop that repeats as long as its condition is true. Something inside must change the condition or it runs forever.

Where the book teaches it

Related terms

loopbreakrepeat while