News for hackers. Stuff that matters.
Re:Show HN: iOS Device info done right by tinus_hn on Monday August 07, 2017 @08:03PM (#14952336)
I'm not so sure deciding things based on a hard coded list of models is such a clever idea. It smells like the UserAgent header on the web.
Re:Show HN: iOS Device info done right by strangecyan on Tuesday August 08, 2017 @04:15AM (#14955619)
Why would you want to change layout on a switch statement? That feels very early 2000s web. Just use auto layout and constraints so that all of the new iPad split screen stuff and any new device sizes comes free.