Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useColorAssets false for SwiftUI colors #192

Closed
ichikmarev opened this issue Sep 22, 2022 · 1 comment · Fixed by #193
Closed

useColorAssets false for SwiftUI colors #192

ichikmarev opened this issue Sep 22, 2022 · 1 comment · Fixed by #193
Labels
enhancement New feature or request

Comments

@ichikmarev
Copy link
Contributor

Is there any way, to import colors in SwiftUI project with RBG values?
If I use useColorAssets: false it's only affects UIKit implementation

Color struct have this initialiser, probably it may be helpful:
public init(_ colorSpace: Color.RGBColorSpace = .sRGB, red: Double, green: Double, blue: Double, opacity: Double = 1)

@subdan subdan added the enhancement New feature or request label Sep 22, 2022
@subdan
Copy link
Collaborator

subdan commented Sep 22, 2022

Hi! Unfortunately, no. But it is possible to do it. I do not have time to implement it. If you want you can create a pull request with implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants