For temporarily hiding layers. The difference with setting a layer’s
0 is that a layer with
visible: no will not react to touches. The layer will be invisible and ‘untouchable.’
square = new Layer size: 300 borderRadius: 11 backgroundColor: "#877DD7" point: Align.center visible: no square.onTap -> print "Layer tapped"
You can set
no in Design by right-clicking a layer and selecting ‘Hide.’ This also works in Design’s Layer Panel.