abynim / Sketch-Headers

Headers from Sketch app exported using class-dump
463 stars 74 forks source link

textBehaviourLabelString in version 61 #23

Closed Miniplop closed 4 years ago

Miniplop commented 4 years ago

Hello @abynim 👋, I build a plugin where I use textBehaviourLabelString declared in MSTextLayer-UISupport.h for getting textBehaviour name like 'Auto' / 'Fixed' or 'Auto Height'.

In the version 61 sketch use verticalAlignement / textAlignment for storing this information and now this data is store as int. Is there a new function or a new way to get the string according this number ?

Thank you for your help

abynim commented 4 years ago

Sorry, I have no idea about this. I would suggest posting your question on the plugins forum so more people can see it: https://sketchplugins.com

Miniplop commented 4 years ago

thank you @abynim

I found the solution on the forum. The solution is to use textBehaviour MSTextLayer property to get an enum '1'/'2'/'3' corresponding to 'Auto Width'/'Auto Height'/'Fixed Size'

Feel free to close the issue :)