QuickGUIHostView
在 SwiftUI 层级中反向托管一棵普通的 QuickGUI 子树。
#导入
从 @quickgui/solid/swift-ui 导入 QuickGUIHostView。
import { Host, QuickGUIHostView } from "@quickgui/solid/swift-ui";#用法
<Host matchContents>
<QuickGUIHostView width={280} height={120}>
<View style={{ width: 280, height: 120, padding: 16 }}>
<Text>Ordinary QuickGUI content</Text>
</View>
</QuickGUIHostView>
</Host>#API 参考
展开条目查看说明和完整签名。短横线表示声明中未记录默认值。
QuickGUIHostView
查看源码QuickGUIHostView(props: QuickGUIHostViewProps): NativeNodetestIDstring—
modifiersViewModifier[]—
childrenunknown—
widthnumber—
heightnumber—
matchContentsMatchContents—
backgroundColorValue—
ref((node: NativeNode) => void) | NativeNode—
Declares ref (optional). Reactive JSX expressions update this property in place.
((node: NativeNode) => void) | NativeNode查看源码