setLineCap(_:) Sets the style for the endpoints of lines drawn in a graphics context. Declarationfunc setLineCap(_ cap: CGLineCap) Parameterscap: A line cap style constant—Butt (the default), Round, or Square. See Cgpath. See AlsoSetting Path Drawing OptionssetAllowsAntialiasing(_:)setFlatness(_:)setLineDash(phase:lengths:)setLineJoin(_:)setLineWidth(_:)setMiterLimit(_:)setPatternPhase(_:)setFillPattern(_:colorComponents:)setShouldAntialias(_:)