Skip to content

Glossary: SwiftUI

ForEach

A view that takes an array and a closure and builds one view per element, since a view body can't hold a `for` loop. Its `id:` tells SwiftUI how to tell elements apart.

Where the book teaches it

Related terms

Identifiablekey pathList