Fluid-for-Sketch icon indicating copy to clipboard operation
Fluid-for-Sketch copied to clipboard

Global Constraints (Classes/Preset Constraints)

Open vic-tian opened this issue 8 years ago • 3 comments

It would be nice if the constraints could behave pretty much like CSS .class (or constraint styles) so that when I create a complex layout and want to change one of the constraints, I can just edit the constraint style. This will make everything out of this world, as now I have to copy-paste constraints for hours :(

For example - this list is populated via Content Generator, the tags are manually added; but I just click and type, then when done, I update the layout. Chasing the position of the title would take me forever, as I'll have to copy-paste the same constraints over and over again, or re-generate the list. Slow.

screen shot 2015-12-04 at 5 01 22 pm

Thanks so much for building this plugin, I can't say how much I benefited from it the last week, building a super complex prototype with tons and tons of data, and I use it now almost all the time!

vic-tian avatar Dec 05 '15 01:12 vic-tian

Good idea. :)

Not sure if you know this or not, but you can copy the constraints from one layer to many easily. Just copy your constraints, then select however many layers you want to copy it to and press paste in the constraint inspector and it will be copied to all of those layers.

matt-curtis avatar Dec 06 '15 12:12 matt-curtis

Hey @matt-curtis, I did try this, but for some reason it didn't work, plus selecting 20+ elements from different groups is always a slow. I wish Bohemian do a "select similar" feature. Anyway, once I've applied the change in a single element, I'd have to edit the constraints again (copy-paste).

Is it possible to create constraints for multiple items at the same time?

And a huge thanks for the work you're doing!

vic-tian avatar Dec 07 '15 19:12 vic-tian

It is, just select all the layers you want to set constraints on, and edit away. Make sure you're using the latest version of Fluid as well.

On Dec 7, 2015, at 1:01 PM, Victor George [email protected] wrote:

Hey @matt-curtis, I did try this, but for some reason it didn't work, plus selecting 20+ elements from different groups is always a slow. I wish Bohemian do a "select similar" feature. Anyway, once I've applied the change in a single element, I'd have to edit the constraints again (copy-paste).

Is it possible to create constraints for multiple items at the same time?

And a huge thanks for the work you're doing!

— Reply to this email directly or view it on GitHub.

matt-curtis avatar Dec 07 '15 19:12 matt-curtis