Hello,
I'm trying to build an app where the view of a list is shown differently depending whether the 'list' or 'grid' icon is selected.
I understand that I need to build two galleries for the same datasource and that a variable can be set to define which one is used.
I've seen this working as part of the 'inventory' template on Powerapps.
This is the current view of the app I've built:

This is the 'list' view and will be selected by the list icon on the top right (which selects the 'lists' gallery) and the grid will be selected to view the 'grid' layout gallery.
I undertand that I should use collections for this and some variables, but I'm not getting how I display a certain gallery by the icon selected.
Any sugguestions would be gratefully received!