Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

xib Support #49

Open
evyasafm opened this issue Jan 17, 2021 · 5 comments
Open

xib Support #49

evyasafm opened this issue Jan 17, 2021 · 5 comments

Comments

@evyasafm
Copy link

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

@freak4pc
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Author

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
Copy link
Contributor

Colors should be in the following week, probably

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants