windowShouldZoom(_:toFrame:)
Asks the delegate whether the specified window should zoom to the specified frame.
Declaration
@MainActor optional func windowShouldZoom(_ window: NSWindow, toFrame newFrame: NSRect) -> BoolParameters
- window:
The window being zoomed.
- newFrame:
The rectangle to which the specified window is being zoomed.
Return Value
true to allow window’s frame to become newFrame; otherwise, false.