maxSize
The maximum size to which the window’s frame (including its title bar) can be sized.
Declaration
var maxSize: NSSize { get set }Discussion
The maximum size constraint is enforced for resizing by the user as well as for the setFrame... methods other than setFrame(_:display:) and setFrame(_:display:animate:). Note that the window server limits window sizes to 10,000.
The default maximum size of a window is {FLT_MAX, FLT_MAX} (FLT_MAX is defined in /usr/include/float.h). When the maximum size of a window has been set, there is no way to reset it other than by specifying this default maximum size.
The contentMaxSize property takes precedence over this property.