Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Cool experiment. Really shows how poorly conceived/verbose Auto Layout is. The first thing I do in any iOS project is add some sort of wrapper around all that constraint nonsense.


Can you elaborate your approach? I've been making iOS apps for a decade now but auto layout and constraints scare the bajesus out of me.


Of course: the app draws from a database of thousands of snippets that are cleaned up and generalized with some scripting. Natural language queries are handled like search, with semantic matching over both natural language and code structures. Content within the snippet like naming, "subject"/"target", and values are dynamic (use # to modify those values) – but it still needs work. As for auto layout, I actually have a feature for that on the roadmap but wasn't sure it was a common problem – bumping up its priority!


When GP asked for GGP to elaborate on their approach, I think they meant for GGP to discuss their wrapper around constraints.


https://snapkit.io/

Makes life easy.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: