Contents

isCollapsedByDefault

Whether the group is initially displayed in a collapsed state in the sidebar.

Declaration

var isCollapsedByDefault: Bool { get set }

Discussion

When true, the group renders collapsed the first time it appears in the sidebar. The user can expand the group manually, and any subsequent user interactions or customization changes take precedence over this default.

This property has no effect in contexts where groups are not collapsible, such as when sidebarAppearance == .inline.

Default is NO.