View

extension View
  • Find the NSWindow of the scene

    Declaration

    Swift

    func withHostingWindow(_ callback: @escaping (NSWindow?) -> Void) -> some View

    Parameters

    callback

    The optional NSWindow

    Return Value

    A SwiftUI background View