Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -926,8 +926,18 @@ open class NSHostingView<Content>: NSView, XcodeViewDebugDataProvider where Cont
// TODO: handle screen change
}

@objc(swiftui_addRenderedSubview:positioned:relativeTo:) // FIXME: ViewUpdater -> AppKitAddSubview
private func openswiftui_addRenderedSubview(_ view: NSView, positioned place: NSWindow.OrderingMode, relativeTo otherView: NSView?) {
@_spi(ForOpenSwiftUIOnly)
#if OPENSWIFTUI_SWIFTUI_RENDERER
@objc(swiftui_addRenderedSubview:positioned:relativeTo:)
#endif
override public func openswiftui_addRenderedSubview(
_ subview: Any,
positioned place: Int,
relativeTo otherView: Any?
) {
let view = subview as! NSView
let place = NSWindow.OrderingMode(rawValue: place)!
let otherView = otherView as! NSView
isInsertingRenderedSubview = true
addSubview(view, positioned: place, relativeTo: otherView)
isInsertingRenderedSubview = false
Expand Down
Loading