Shapes with Paths using SwiftUI Part4

A compendium of shapes using paths

Mark Lucking
Analytics Vidhya

--

Some simple cogs, gears and stars build in SwiftUI using paths

In part 1, 2 and 3 of this series I covered isosceles polygons, the majority of triangles you could imagine, parallelograms and trapezoids and even random polygons; putting together routines to build them using methods based on circles. You can find the stories here. Shapes that you can mutate and animate to your hearts content in code.

Bon. We done pretty well considering almost everything is based on a simple circle. What now. Well looking thru my client requirements for shapes he wants a star. We could use an…

--

--

Mark Lucking
Analytics Vidhya

Coding for 35+ years, enjoying using and learning Swift/iOS development. Writer @ Better Programming, @The StartUp, @Mac O’Clock, Level Up Coding & More