Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIBezierPath round edges?

Im drawing some lines and I noticed that when the edges get at a certain angle it generates a sharp edge like this: pointy edge

What I want it to draw: round edge

How do I do this? I have looked through the documentations but I dont seem to find anything im looking for. Or is there a way to turn that auto-edge-generating off?

like image 893
Arbitur Avatar asked Aug 10 '13 23:08

Arbitur


People also ask

How do I round corners in UIImageView?

Make UIImageView Corners RoundedSetting the corner radius to 100 will make the image view completely rounded. Try different corner radius like 10, 20, 30, 40 to get image corners of different radius. To make the image border and visible I will set the borderWidth and the borderColor.

What are rounded edges called?

When the edges are rounded instead, they are called bullnosed. Special tools such as chamfer mills and chamfer planes are sometimes used.

What is a rounded edge rectangle called?

A rounded rectangle is the shape obtained by taking the convex hull of four equal circles of radius and placing their centers at the four corners of a rectangle with side lengths and . A filled rounded rectangle with (or. ) is called a stadium. The rounded rectangle has perimeter.


1 Answers

kCGLineJoinRound property on a UIBezierPath can be called in Swift by:

myPath.lineJoinStyle = .round
like image 153
Aaron Halvorsen Avatar answered Sep 18 '22 17:09

Aaron Halvorsen