RedMadRobot / figma-export

Command line utility to export colors, typography, icons and images from Figma to Xcode / Android Studio project
MIT License
718 stars 114 forks source link

Add StencilSwiftKit #194

Closed alexey1312 closed 1 year ago

alexey1312 commented 1 year ago

What did

Motivation

Add new nodes & filters dedicated to Swift code generation.

subdan commented 1 year ago

Why do we need StencilSwiftKit?

alexey1312 commented 1 year ago

Why do we need StencilSwiftKit?

StencilSwiftKit will add more flexibility in code generation. There are not enough filters lowerFirstLetter, lowerFirstWord, replace!, upperFirstLetter. I think, from more flexibility in code generation, no one will lose 😁

subdan commented 1 year ago

Do you plan to use StencilSwiftKit in FigmaExport?

alexey1312 commented 1 year ago

Yes, we are using StencilSwiftKit now, from my branch. We use custom template in the project. And we have several color assets whose names should be the same. Without filters like replace, lowerFirstWord and more this is impossible to implement...

P.S. It would be cool to add custom names for templates.