Instance Method

indent(level:)

Indent the menu item to the given level

Declaration

func indent(level: Int) -> Self

Discussion

For simple indentation, use IndentGroup (which automatically handles nesting) instead.

Example


MenuItem("Hello, world!")
    .indent(level: 2)

See Also

Related Documentation

Advanced Customizations