Export for Apple apps (SwiftUI and UIKit)・Pro
You can export every color shade to a Swift file on your computer, regarding the framework you use for building UI in your Xcode project. Learn more about Color Structure on the Apple Developer Documentation.
The export file follows this model:
import SwiftUI
public extension Color {
static let Token = Color.TokenColor()
struct TokenColor {
// themeName - sourceColorName
public let themeNameSourceColorNameStopName = Color(red: 0.133, green: 0.329, blue: 0.961)
...
}
}
Last updated
Was this helpful?