No overview available.
SDKs
- iOS 11.0+
- macOS 10.13+
- Mac Catalyst 13.0+
- tvOS 11.0+
Framework
- Core Animation
Declaration
var maskedCorners: CACorner Mask { get set }
No overview available.
SDKs
Framework
var maskedCorners: CACorner Mask { get set }
var contents Gravity: CALayer Contents Gravity
A constant that specifies how the layer's contents are positioned or scaled within its bounds.
The contents gravity constants specify the position of the content object when the layer bounds is larger than the bounds of the content object. They are used by the contents
property.
var opacity: Float
The opacity of the receiver. Animatable.
var is Hidden: Bool
A Boolean indicating whether the layer is displayed. Animatable.
var masks To Bounds: Bool
A Boolean indicating whether sublayers are clipped to the layer’s bounds. Animatable.
var mask: CALayer?
An optional layer whose alpha channel is used to mask the layer’s content.
var is Double Sided: Bool
A Boolean indicating whether the layer displays its content when facing away from the viewer. Animatable.
var corner Radius: CGFloat
The radius to use when drawing rounded corners for the layer’s background. Animatable.
var border Width: CGFloat
The width of the layer’s border. Animatable.
var border Color: CGColor?
The color of the layer’s border. Animatable.
var background Color: CGColor?
The background color of the receiver. Animatable.
var shadow Opacity: Float
The opacity of the layer’s shadow. Animatable.
var shadow Radius: CGFloat
The blur radius (in points) used to render the layer’s shadow. Animatable.
var shadow Offset: CGSize
The offset (in points) of the layer’s shadow. Animatable.
var shadow Color: CGColor?
The color of the layer’s shadow. Animatable.
var shadow Path: CGPath?
The shape of the layer’s shadow. Animatable.
var style: [Any Hashable : Any]?
An optional dictionary used to store property values that aren't explicitly defined by the layer.
var allows Edge Antialiasing: Bool
A Boolean indicating whether the layer is allowed to perform edge antialiasing.
var allows Group Opacity: Bool
A Boolean indicating whether the layer is allowed to composite itself as a group separate from its parent.