protocol PreviewContext
A context type for use with a preview.
protocol PreviewContextKey
A key type for a preview context.
Availability 有効性
Technology
func previewContext<C>(_ value: C) -> some View
where C : PreviewContext
value
The context for the preview; the default is nil
.
protocol PreviewContext
protocol PreviewContextKey