Grouping to set Visibility for multiple components together

I would like the ability to group components.

When applying the same visibility to multiple components, we currently have to set them one at a time.
It would be very useful to be able to set visibility collectively by grouping components.

Using Pixelmator as an example, this would be such a feature.