struct IndentGroup
A container that increases the
indentationLevel
of its content by one.Framework
func indent(level: Int) -> Self
For simple indentation, use Indent
(which automatically handles nesting) instead.
MenuItem("Hello, world!")
.indent(level: 2)
struct IndentGroup
indentationLevel
of its content by one.func set<Value>(ReferenceWritableKeyPath <Self.Item, Value>, to: Value) -> Self
keyPath
on the menu item to a value of your choice.func apply((Self.Item) -> ()) -> Self
modifier
to prepare the menu item for display.