---
title: nestingMode
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsruleeditor/nestingmode-swift.property
---

# nestingMode

The rule editor’s nesting mode.

## Declaration

```swift
var nestingMode: NSRuleEditor.NestingMode { get set }
```

## Discussion

Discussion You typically set the nesting mode at view creation time and do not subsequently modify it. The default is NSRuleEditorNestingModeCompound. For a list of valid modes, see Nesting Modes.

## See Also

### Configuring a Rule Editor

- [isEditable](appkit/nsruleeditor/iseditable.md)
- [NSRuleEditor.NestingMode](appkit/nsruleeditor/nestingmode-swift.enum.md)
- [canRemoveAllRows](appkit/nsruleeditor/canremoveallrows.md)
- [rowHeight](appkit/nsruleeditor/rowheight.md)
