iOS 26 added smoothness to CIRoundedRectangleGenerator, for use with CIFilter.roundedRectangleGenerator. What should the smoothness value be to achieve the same corner curve as CALayerCornerCurve.continuous? Does it need to be calculated based on the extent size, if so, how?
- Setting the value to 0 make the output use a simple radius where the shape goes from line to curve to line.
- Setting the value to 1 makes the the transition from line to curve smooth like icons do (setting to 1 should match CAs result).
- Setting a value to a number between 0 and 1 interpolates between the two.
- also the CIBlurredRectangleGenerator can be used as a way to generate a drop shadow to go beneath.