2 ms·
This is where I originally learnt about it. Seems like it's called a continuous corner, or “squircle”: https://kylebashour.com/posts/finding-the-real-iphone-x-
by busymom0 7y ago
This is where I originally learnt about it. Seems like it's called a continuous corner, or “squircle”:
https://kylebashour.com/posts/finding-the-real-iphone-x-corner-radius https://kylebashour.com/posts/finding-the-real-iphone-x-corn...
- saagarjha 7y agoThe corner radius is 39; you can find it by peeking inside iOS. CALayer has "continuous corners", which are very similar to but just slightly different than the app icon shape, which is a 16-part Bézier curve generated inside of the MobileIcons framework. This curve is as far as I can tell identical to the one that UIBezierPath.init(roundedRect:cornerRadius:) will give you when the corner radius is 22.5% of the side length. (Note that the app icon on the home screen, being of a constant size, is actually generated via an image mask rather than dynamic clipping.)