The layer’s frame rectangle.
- iOS 2.0+
- macOS 10.5+
- tvOS 9.0+
- Core Animation
The frame rectangle is position and size of the layer specified in the superlayer’s coordinate space. For layers, the frame rectangle is a computed property that is derived from the values in the
position properties. When you assign a new value to this property, the layer changes its
bounds properties to match the rectangle you specified. The values of each coordinate in the rectangle are measured in points.
Do not set the frame if the
transform property applies a rotation transform that is not a multiple of 90 degrees.