On (https://developer.apple.com/ios/human-interface-guidelines/overview/iphone-x) 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..."
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.
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.
I have already checked window.layer.cornerRaidus
in my app delegate...