Contents

ExternalNonInteractiveAccessory

A scene accessory that presents non-interactive content on an external display.

Declaration

nonisolated struct ExternalNonInteractiveAccessory<Content> where Content : View

Overview

The scene accessory may be presented when an external display is connected to the device, or when the device is connected to an external display via AirPlay.

For example, you can define a scene accessory for previewing a non-interactive presentation, which may be presented when an external display is connected:

struct RootView: View {
    var document: PresentationDocument

    var body: some View {
        PresentationDocumentView(document: document)
            .sceneAccessory {
                ExternalNonInteractiveAccessory {
                    PresentationPreview(document: document)
                }
            }
    }
}

Topics

Initializers

See Also

Presenting content on an external display