NSWindow presented on Safari extension (.appex) is not resizable?

I'm trying to present a resizable NSWindow defined like this:

let window = NSWindow()
window.contentViewController = NSHostingController(
    rootView: Rectangle().frame(minWidth: 100, minHeight: 100))
window.styleMask.insert([.closable, .resizable])

Generally, I can resize this window but somehow I can NOT when it's presented from Safari app extension (.appex).

Did I miss something? Does anyone know what's happening?

  • I think I am having the same issue with a Safari Web Extension. The window appears, but nothing interactive works - it cannot be sized, a splitview cannot be moved, etc.

    Did you ever get to the bottom of this?

Add a Comment