locked
Rounded corners on iPhone Xs RRS feed

  • Question

  • User387241 posted

    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.

    Friday, September 13, 2019 8:27 PM

Answers

  • User196244 posted

    I'm using this myself for a very long time: https://github.com/dannycabrera/Get-iOS-Model

    It is well maintained and you end up just having to use a single static class which is perfect!

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Saturday, September 14, 2019 8:45 AM

All replies

  • User196244 posted

    I'm using this myself for a very long time: https://github.com/dannycabrera/Get-iOS-Model

    It is well maintained and you end up just having to use a single static class which is perfect!

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Saturday, September 14, 2019 8:45 AM
  • User387241 posted

    Thanks, I'll give it a try!

    Monday, September 16, 2019 3:42 PM