When adding a sublayer to a tag when a tag is created, the sublayers are sized differently when the tag is rendered. For example, when adding a CAGradientLayer in my app with this code:
I suspect this is because the tag view generates its size sometime after this code runs, so the values for the tag's layer's frame and bounds are updated sometime after this, but its sublayers are not
NOTE: This only seems to happen when paddingX and/or paddingY is set
When adding a sublayer to a tag when a tag is created, the sublayers are sized differently when the tag is rendered. For example, when adding a
CAGradientLayer
in my app with this code:The tag appears on my screen like this:
I suspect this is because the tag view generates its size sometime after this code runs, so the values for the tag's
layer
'sframe
andbounds
are updated sometime after this, but its sublayers are notNOTE: This only seems to happen when
paddingX
and/orpaddingY
is set