isZoomed
A Boolean value that indicates whether the window is in a zoomed state.
Declaration
var isZoomed: Bool { get }Discussion
The value of this property is true if the window is in a zoomed state; otherwise, false.
The zoomed state of the window is determined using the following steps:
If the delegate or the window class implements windowWillUseStandardFrame(_:defaultFrame:), it is invoked to obtain the zoomed frame of the window. The value of isZoomed is then determined by whether or not the current window frame is equal to the zoomed frame.
If the neither the delegate nor the window class implements windowWillUseStandardFrame(_:defaultFrame:), a default frame that nearly fits the screen is chosen. If the delegate or window class implements windowWillUseStandardFrame(_:defaultFrame:), it is invoked to validate the proposed zoomed frame. After the zoomed frame is validated, the value of isZoomed is determined by whether or not the current window frame is equal to the zoomed frame.