Graphics Reference
In-Depth Information
Figure 4.7 The layer shadow follows the exact outline of the layer backing image.
Layer shadows have an annoying limitation when combined with clipping: Because the
shadow is usually drawn outside the layer bounds, if you enable the masksToBounds
property, the shadow is clipped along with any other content that protrudes outside of the
layer. If we add a layer shadow to our border example project, you can see the problem (see
Figure 4.8).
Figure 4.8 The masksToBounds property clips both shadow and content.
Search WWH ::




Custom Search