iPhone X corner radius?

Hello,


I am currently working on an Xcode project and am rounding the corners of my buttons with a blue background. I became curious as to the proportions of the iPhone X for various reasons and found it was a 375:812 ratio.


I plan to make my button proportional to the size of the iPhone X screen, but cannot find the screen corner radius of the iPhone X anywhere. I figured that it was around 39 pixels by guess and check methods in Xcode doing "button.layer.cornerRadius = 39" when I had my button take up the entire screen compared to 40.


I want to make sure that it is 39, because obviously my method isn't as rock solid as others. If anyone knows the answer please feel free to help!


Thanks

MacBook Pro TouchBar and Touch ID, macOS Sierra (10.12.6), using Mac but looking at iPhone X

Posted on Jan 1, 2018 9:35 PM

Reply
3 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

iPhone X corner radius?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.