DeveloperToolsSupport · IOS API REFERENCE
Preview
struct · iOS 17.0+ · SDK 27.1
@MainActor struct PreviewA base type that preview macros use to create previews. Frameworks like SwiftUI and WidgetKit define initializers for this type, along with framework-specific preview macros that rely on this type. You don't use this type directly. Instead, use one of the preview macros, like <doc://com.apple.documentation/documentation/SwiftUI/Preview(_:body:)>.
Members (0)
This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.
Skipped declarations
No declarations were skipped in this snapshot.