Skip to content

Commit b067c4b

Browse files
committed
0.36.0
1 parent 140df41 commit b067c4b

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

CONFIG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ ios:
9090

9191
# [optional] Parameters for exporting colors
9292
colors:
93-
# How to export colors? Use .xcassets and UIColor extension (useColorAssets = true) or extension only (useColorAssets = false)
93+
# How to export colors? Use .xcassets and UIColor/Color extension (useColorAssets = true) or UIColor/Color extension only (useColorAssets = false)
9494
useColorAssets: true
9595
# [required if useColorAssets: True] Name of the folder inside Assets.xcassets where to place colors (.colorset directories)
9696
assetsFolder: Colors

FigmaExport.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |spec|
22
spec.name = "FigmaExport"
3-
spec.version = "0.35.2"
3+
spec.version = "0.36.0"
44
spec.summary = "Command line utility to export colors, typography, icons and images from Figma to Xcode / Android Studio project."
55
spec.homepage = "https://github.com/RedMadRobot/figma-export"
66
spec.license = { type: "MIT", file: "LICENSE" }

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ For SwiftUI the following Swift file will be created to use colors from the code
9999
```
100100

101101
If you set option `useColorAssets: False` in the configuration file, then will be generated code like this:
102+
103+
UIKit:
104+
102105
```swift
103106
import UIKit
104107

@@ -122,6 +125,16 @@ extension UIColor {
122125
}
123126
```
124127

128+
SwiftUI:
129+
130+
```swift
131+
import SwiftUI
132+
133+
public extension ShapeStyle where Self == Color {
134+
static var primaryText: Color { Color(red: 1.000, green: 1.000, blue: 1.000, opacity: 1.000) }
135+
}
136+
```
137+
125138
#### Icons
126139

127140
Icons will be exported as PDF or SVG files with `Template Image` render mode.

Sources/FigmaExport/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ enum FigmaExportError: LocalizedError {
3131

3232
struct FigmaExportCommand: ParsableCommand {
3333

34-
static let version = "0.35.2"
34+
static let version = "0.36.0"
3535

3636
static let svgFileConverter = VectorDrawableConverter()
3737
static let fileWriter = FileWriter()

0 commit comments

Comments
 (0)