Skip to main content

Imagine a container (say a frame) 40 x 40. And, dozens of icons with different aspect ratios and sizes, e.g., 10x20, 30x5, 50x45, etc.


I want to setup this frame (or a set of nested frames) such that when I drop an icon inside the inner-most frame, the icon automatically scales proportionately to fill the 40x40 container. So, a 10x20 icon when dropped inside, would automatically become 20x40 (i.e. it would retain the aspect ratio and not exceed the 40x40 limit).


I know how to do this manually but am looking for an automatic solution. Would greatly appreciate a solution.

Itโ€™s time to learn why all proper icon sets in the whole industry are sitting inside the square box 🤣


What you are suggesting is already known to me as I mentioned in my post that I know the manual way (and there are many, one of which is to put an icon inside a square frame, which perhaps you are alluding to).


My question pertained to automating design even more, so an artist is not under a restriction to create square icons โ€“ i.e., as soon as a rectangular icon is dropped inside a layer structure (which has some form of Auto Layout, etc.), the icon auto-scales.


If no one has an answer to this question, Iโ€™ll post the best solution I could come up with for this problem.


Maybe itโ€™s time for people like you to be more humble and be open to newer ideas, rather than send arrogant messages.


Reply