Hacker News new | ask | show | jobs
by viktorcode 18 days ago
Some years ago I had to add a squircle to a UI system that lacked one. I compared Figma's approach to Apple's and found out they do not match well. So, then I just drew a default rounded rectangle path in Apple's playground and read the Bézier curves from that path. I got my control points I could use to perfectly represent Apple's approach!

One interesting detail I noticed: in Apple's squircles the rounded corners are slightly pushing outwards from the flatness of a side. But the absolute value is very low, so the effect isn't visible unless you specifically look for it.