Skip to content

Glossary: SwiftUI

@Previewable

Also written: Previewable

A macro that lets you declare `@State` right inside a `#Preview`, so a preview can supply a value that a parent view would normally own.

Where the book teaches it

Related terms

#Preview@Statemacro