GettEngineering / Prism

Gett's Design System code generator. Use Zeplin Styleguides as your R&D's Single Source of Truth.
https://prism.tools
MIT License
361 stars 21 forks source link

xib Support #49

Open evyasafm opened 3 years ago

evyasafm commented 3 years ago

Hi, Can the Prism TextStyle be used within a xib / storyboard?

freak4pc commented 3 years ago

Hey there ! I actually have a local branch to generate Color Assets (in an Asset Catalog), which should help achieve what you want.

If that's valuable for you I can push it here and let you play with it, but it's still a bit of work in progress :)

freak4pc commented 3 years ago

Just realized your question was about Text Styles and not colors. This is a bit trickier because Xcode doesn't have any UI element to allow selecting something like a Text Style.

The only way would be providing some clear text field (as @IBInspectable), but that would be very error prone.

freak4pc commented 3 years ago

Here's an example for Color Assets that are going into Prism soon, if that's helpful @evyasafm:

image

If Xcode ever adds a way to add arbitrary drop-down items, I'll be happy to add Text Styles as well, but doesn't seem it's on their wishlist :)

evyasafm commented 3 years ago

Great, and Thanks for all of your work :) It would be awesome if Apple implemented an Inspectable drop-down!

When is it likely to be ready for production?

freak4pc commented 3 years ago

Colors should be in the following week, probably