LavaUI docs GitHub

struct FileDragSourceView

Swift

struct FileDragSourceView<Content, Chip> where Content : View, Chip : View

Registers the content's root layout box as something files can be dragged out of.

Sources/LavaUI/DragSource.swift:108

Properties

var chip: (() -> Chip)?

Builds the chip that follows the pointer, or nil for the bare cursor.

Sources/LavaUI/DragSource.swift:112

var content: Content

The view files can be dragged out of.

Sources/LavaUI/DragSource.swift:118

var dumpDetail: String { get }

Not documented.

Sources/LavaUI/DragSource.swift:120

var offsetX: Float

Horizontal distance from the pointer to the chip's top-left, in pixels.

Sources/LavaUI/DragSource.swift:114

var offsetY: Float

Vertical distance from the pointer to the chip's top-left, in pixels.

Sources/LavaUI/DragSource.swift:116

var paths: () -> [String]

Asked for the paths to drag when a drag starts.

Sources/LavaUI/DragSource.swift:110

Methods

func mountPrimitive() -> any AnyViewNode

Not documented.

Sources/LavaUI/DragSource.swift:130

func reconcilePrimitive(_ node: any AnyViewNode) -> any AnyViewNode

Not documented.

Sources/LavaUI/DragSource.swift:134

func structureLines(indent: Int = 0) -> [String]

Not documented.

Sources/LavaUI/DragSource.swift:122