size

Just like swatches, swatch groups come in four different sizes: extra-small, small, medium, and large. The medium size is the default option. This only affects the size of each individual swatch, not the spacing between them.

density

Swatch groups come in 3 densities: regular (default), compact, and spacious. Compact and spacious densities retain the same swatch size as regular density but have less or more padding between each swatch, respectively.

enableSelection

By default, selection is not enabled in a swatch group. Selection can be enabled for a swatch group to allow for toggling. This is often used inside of swatch panels.

selectionMode

When selection is enabled, a swatch group can allow for either single or multiple selection of swatches. This is often used inside of swatch panels to allow for bulk operations, such as deleting multiple swatches at once.

allowsEmptySelection

Controls whether users can deselect all swatches when selection is enabled. If true, empty selection is allowed; if false, at least one swatch must remain selected.

cornerRadius

By default, swatch group has no corner rounding. Corner rounding options include none, partial, or full. The swatch group corner rounding dictates the rounding for all the individual swatches in that group.