Skip to content

Glossary: SwiftUI

trailing closure

Also written: closure

A closure written after a call's parentheses, such as a Button's action or the row builder of a List. When a call ends with several closures, later ones follow with their labels, as in `.alert`.

Where the book teaches it

Related terms

ButtonListalert