SwiftUI.js
Components

PresentationDragIndicator

PresentationDragIndicator adapts SwiftUI's `presentationDragIndicator` modifier into an explicit wrapper.

PresentationDragIndicator adapts SwiftUI's `presentationDragIndicator` modifier into an explicit wrapper.

Examples

Automatic

Preview unavailable for this example in the static docs build.

Show code
<PresentationDragIndicator>
      <Text>Use platform default drag indicator</Text>
    </PresentationDragIndicator>

Variants

Preview unavailable for this example in the static docs build.

Show code
<VStack spacing={12}>
      <PresentationDragIndicator visibility="visible">
        <Text>Always show drag affordance</Text>
      </PresentationDragIndicator>
      <PresentationDragIndicator visibility="hidden">
        <Text>Hide drag affordance</Text>
      </PresentationDragIndicator>
    </VStack>

API

PropTypeRequiredDescription
visibility'automatic' | 'visible' | 'hidden'NoNo description yet.

Inherits additional props from IBaseComponent.

Overview

PresentationDragIndicator adapts SwiftUI's presentationDragIndicator modifier into an explicit wrapper.

Status: adapted

On this page