Skip to content

QuickGUIHostView

Reverse-hosts one ordinary QuickGUI subtree inside a SwiftUI hierarchy.

#Import

Import QuickGUIHostView from @quickgui/solid/swift-ui.

import { Host, QuickGUIHostView } from "@quickgui/solid/swift-ui";

#Usage

<Host matchContents>
  <QuickGUIHostView width={280} height={120}>
    <View style={{ width: 280, height: 120, padding: 16 }}>
      <Text>Ordinary QuickGUI content</Text>
    </View>
  </QuickGUIHostView>
</Host>

#API reference

Expand an entry for its description and complete signature. A dash means no declaration default is documented.

QuickGUIHostView

View source
QuickGUIHostView(props: QuickGUIHostViewProps): NativeNode
testIDstring—

Stable identifier exposed to macOS accessibility and UI testing.

string
View source
modifiersViewModifier[]—

SwiftUI modifiers, applied in array order.

ViewModifier[]
View source
childrenunknown—

The one ordinary QuickGUI subtree rendered by this reverse host.

unknown
View source
widthnumber—

Fixed SwiftUI frame width and initial QuickGUI viewport width.

number
View source
heightnumber—

Fixed SwiftUI frame height and initial QuickGUI viewport height.

number
View source
matchContentsMatchContents—

Measure the ordinary QuickGUI subtree on either or both intrinsic axes.

MatchContents
View source
backgroundColorValue—

Clear color used by the embedded WGPU surface. Defaults to transparent.

ColorValue
View source
ref((node: NativeNode) => void) | NativeNode—

Declares ref (optional). Reactive JSX expressions update this property in place.

((node: NativeNode) => void) | NativeNode
View source