title: How to detect rounded screen corners in iOS
body: <p>On (<a href="https://developer.apple.com/ios/human-interface-guidelines/overview/iphone-x" rel="nofollow noreferrer">https://developer.apple.com/ios/human-interface-guidelines/overview/iphone-x</a>) Apple tells us that "A full-width button appearing at the bottom of the screen looks best when it has rounded corners and is aligned with the bottom of the safe area..."</p>
  
  <p>So I want to round the corners of my button if the corners of the screen are round, but have sharp corners when the screen corners are sharp.</p>
  
  <p>I would just check to see of the app is running on an iPhone X, but I expect that future devices will also have rounded corners and I don't want to have to revisit this code every time a new device comes out.</p>
  
  <p>I have already checked <code>window.layer.cornerRaidus</code> in my app delegate...</p>