Instance Property

lineCap

Specifies the line cap style for the shape’s path.

Declaration

@property(copy) CAShapeLayerLineCap lineCap;

Discussion

The line cap style specifies the shape of the endpoints of an open path when stroked. The supported values are described in Line Cap Values. Figure 1 shows the appearance of the available line cap styles.

Figure 1

Line cap styles

The default is kCALineCapButt.

See Also

Accessing Shape Style Properties

fillColor

The color used to fill the shape’s path. Animatable.

fillRule

The fill rule used when filling the shape’s path.

lineDashPattern

The dash pattern applied to the shape’s path when stroked.

lineDashPhase

The dash phase applied to the shape’s path when stroked. Animatable.

lineJoin

Specifies the line join style for the shape’s path.

lineWidth

Specifies the line width of the shape’s path. Animatable.

miterLimit

The miter limit used when stroking the shape’s path. Animatable.

strokeColor

The color used to stroke the shape’s path. Animatable.

strokeStart

The relative location at which to begin stroking the path. Animatable.

strokeEnd

The relative location at which to stop stroking the path. Animatable.