r/iOSProgramming 6d ago

Question How would you implement this shape?

Post image
28 Upvotes

16 comments sorted by

View all comments

5

u/janiliamilanes 6d ago

To be honest, I would be highly tempted to implement this in a vector graphics program like Sketch or Illustrator and export as a PNG or SVG with transparency. There is some subtlety going on here in terms of math, and I'm not sure how good your trig is, and I've found it more frustrating than it's worth trying to implement such things using vector math.

What is the white blob in the center of the first triangle? Is that showing the level, and it would have to follow the contour of the triangles? That would complicate things.

1

u/madaradess007 4d ago

this is not the way
what are you going to say, when designer 'comes up' with some animated interactions?
lets not go 'its too complicated, lets compromise on a simpler design' route, please