RedMadRobot / figma-export

Command line utility to export colors, typography, icons and images from Figma to Xcode / Android Studio project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Autogenerated code fails to compile when the icons are using a reserved word

agarcia-wish opened this issue · comments

Here are a few examples for Swift:

    static var class: UIImage { UIImage(named: #function, in: BundleProvider.bundle, compatibleWith: nil)! }
    static var extension: UIImage { UIImage(named: #function, in: BundleProvider.bundle, compatibleWith: nil)! }
    static var return: UIImage { UIImage(named: #function, in: BundleProvider.bundle, compatibleWith: nil)! }

Expected:

    static var `class`: UIImage { UIImage(named: #function, in: BundleProvider.bundle, compatibleWith: nil)! }
    static var `extension`: UIImage { UIImage(named: #function, in: BundleProvider.bundle, compatibleWith: nil)! }
    static var `return`: UIImage { UIImage(named: #function, in: BundleProvider.bundle, compatibleWith: nil)! }

I've fixed the issue. Please update to the latest version.