Skip to content

Glossary: SwiftUI

if (inside a view)

Also written: if inside a view

A plain `if` in a view body shows the views inside it only while the condition is true, as `if item.hasSizes` hides size options for food.

Where the book teaches it

Related terms

body