3 ms·
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 c
by matchbok 7y ago
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.
- tannerc 7y agoCan 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.
- tshepom 7y agoOf 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!
- zapzupnz 7y agoWhen GP asked for GGP to elaborate on their approach, I think they meant for GGP to discuss their wrapper around constraints.
- matchbok 7y agohttps://snapkit.io/ https://snapkit.io/ Makes life easy.