If you create a 9-slice from a rounded rectangle you created on iOS, you need to take into account that the distance from the corner to the first axis-aligned control point is about 152.866% of the radius.
I found this value through some empirical computer science in a quick #SwiftUI preview.
I found this value through some empirical computer science in a quick #SwiftUI preview.
Comments
(unless of of course, it crosses the midpoint of the shortest edge)
(Thanks to @axiixc for showing me the way.)