<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSPanel/isFloatingPanel",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSPanel(py)floatingPanel"
  },
  "title" : "isFloatingPanel"
}
-->

# isFloatingPanel

A Boolean value that indicates whether the receiver is a floating panel.

```
var isFloatingPanel: Bool { get set }
```

## Discussion

The value of this property is <doc://com.apple.documentation/documentation/Swift/true> when the receiver is a floating panel, <doc://com.apple.documentation/documentation/Swift/false> otherwise.

By default, panels do not float above other windows. It’s appropriate for a panel to float above other windows only if all of the following conditions are true:

- It’s small enough not to obscure whatever is behind it.
- It’s oriented more to the mouse than to the keyboard—that is, if it doesn’t become the key window or becomes so only when needed.
- It needs to remain visible while the user works in the app’s standard windows—for example, if the user must frequently move the pointer back and forth between a standard window and the panel (such as a tool palette), or if the panel gives information relevant to the user’s actions in a standard window.
- It hides when the app is deactivated (the default behavior for panels).

## See Also

[`level`](/documentation/AppKit/NSWindow/level-swift.property)

The window level of the window.

  [Window Programming Guide](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/WinPanel/Introduction.html#//apple_ref/doc/uid/10000031i)



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)