Contents

previewContext(_:)

Declares a context for the preview.

Declaration

nonisolated func previewContext<C>(_ value: C) -> some View where C : PreviewContext

Parameters

  • value:

    The context for the preview; the default is nil.

See Also

Setting a context