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

useColorAssets false for SwiftUI colors #192

Closed ichikmarev closed 1 year ago

ichikmarev commented 1 year ago

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 commented 1 year ago

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.