title: is there a public api for getting the fancier rounded corners in modern iOS?
body: <p>Starting with iOS 7, Apple have been using nicer rounded corners in visual elements such as icons. In iOS 11, these rounded corners are abundant in system UI elements, such as Control Center and many other places.</p>
  
  <p><img src="https://i.stack.imgur.com/KRi4L.jpg" width="150"></p>
  
  <p>the <code>cornerRadius</code> APIs on eg <code>CALayer</code> etc are more basic.</p>
  
  <p>Is there some API which gives you the nice new roundedness?</p>
  
  <p>see for example this question:
  <a href="https://stackoverflow.com/questions/18389114/draw-ios-7-style-squircle-programatically">Draw iOS 7-style squircle programmatically</a></p>
  
  <p>also see how the answers to the question are not good; a few years onwards, is there an Apple API which gives you this type of corner curve?</p>