Rounded corners on iPhone Xs

I've got an app that's displaying information at the bottom, and the iPhone Xs has these darn rounded corners on the screen that are cutting off some of the information. No biggie, I just need to add a little padding to the bottom in that case. Question is, how can detect if the device has these rounded corners? I doubt there's any routine called 'DeviceHasRoundCorners'. But I'm perfectly fine determining it myself, if I can get the model device type. But the only relevent piece of information in Device is RuntimePlatform, but that's not enough to go on. Got an iPad here with square corners, so just saying iOS isn't enough. I wager what I'm looking for is going to be on the iOS side of the code, I just don't know crap about iOS.

Best Answer

Answers

Sign In or Register to comment.