As seen before, working directly with object stacks can get confusing. Therefore, the ideal way is to use layers to determine how the objects are actually stacked upon each other.
Layers can be used to create better organized objects. You can access layers from the Layers panel.
Clicking the Layers panel will reveal the layers in the document. You can create a new layer by clicking the Create New Layer at the bottom on the Layers panel, which will directly create a new layer or you can also hold down the Alt key on Windows or Option key on the Mac and click on Create New Layer to get the New Layer dialog box.
You will notice that each layer is color coded and has an active square beside its name. That square is an indication that elements of that layer are being worked on currently. You can click and drag the square to another layer, which will reveal items belonging to that layer. In the following example, clicking and dragging the blue square from the Background layer to the Main layer, changes the square to red and highlights the elements in the document belonging to the Main layer.
Clicking the eyeball icon in front of the layer name will hide or reveal the layer. Clicking the box just beside the eyeball will lock the layer and prevent you from making edits to it.
Sometimes, you might want to see the layer on screen but need not have to print the objects in that layer. To do this, double-click on the layer in which the object is present to open the New Layer dialog box we’ve seen earlier. Then remove the checkmark beside the Print Layer option. This will show the layer on screen but will not print it on paper or when exported to PDF.
Every layer is composed of objects which can be rearranged within the layer or even between the layers. Each object is given a name within a layer.
For example, collapsing the Background layer will reveal the objects within it. The name <rectangle> means the rectangular frame. Images if any, will be shown by their file names. If there is some text within a text frame, the starting words of the text will be shown so as to easily identify it.
It is possible to rearrange these objects by simply clicking and dragging the object (for multiple object select by holding Ctrl on Windows or Command on Mac) into the desired layer.
Sometimes, in a complex document, it can be difficult to keep track of what each <rectangle> actually means. You can simply rename the object name by clicking once, pausing for a second and clicking again. This will enable you to rename the object to something more recognizable.