Skip to content

Commit

Permalink
0.36.0
Browse files Browse the repository at this point in the history
  • Loading branch information
subdan committed Sep 24, 2022
1 parent 140df41 commit b067c4b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CONFIG.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ ios:

# [optional] Parameters for exporting colors
colors:
# How to export colors? Use .xcassets and UIColor extension (useColorAssets = true) or extension only (useColorAssets = false)
# How to export colors? Use .xcassets and UIColor/Color extension (useColorAssets = true) or UIColor/Color extension only (useColorAssets = false)
useColorAssets: true
# [required if useColorAssets: True] Name of the folder inside Assets.xcassets where to place colors (.colorset directories)
assetsFolder: Colors
Expand Down
2 changes: 1 addition & 1 deletion FigmaExport.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "FigmaExport"
spec.version = "0.35.2"
spec.version = "0.36.0"
spec.summary = "Command line utility to export colors, typography, icons and images from Figma to Xcode / Android Studio project."
spec.homepage = "https://github.com/RedMadRobot/figma-export"
spec.license = { type: "MIT", file: "LICENSE" }
Expand Down
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ For SwiftUI the following Swift file will be created to use colors from the code
```

If you set option `useColorAssets: False` in the configuration file, then will be generated code like this:

UIKit:

```swift
import UIKit

Expand All @@ -122,6 +125,16 @@ extension UIColor {
}
```

SwiftUI:

```swift
import SwiftUI

public extension ShapeStyle where Self == Color {
static var primaryText: Color { Color(red: 1.000, green: 1.000, blue: 1.000, opacity: 1.000) }
}
```

#### Icons

Icons will be exported as PDF or SVG files with `Template Image` render mode.
Expand Down
2 changes: 1 addition & 1 deletion Sources/FigmaExport/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ enum FigmaExportError: LocalizedError {

struct FigmaExportCommand: ParsableCommand {

static let version = "0.35.2"
static let version = "0.36.0"

static let svgFileConverter = VectorDrawableConverter()
static let fileWriter = FileWriter()
Expand Down

0 comments on commit b067c4b

Please sign in to comment.