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.
Declares a context for the preview.
nonisolated func previewContext<C>(_ value: C) -> some View where C : PreviewContext
The context for the preview; the default is nil.