Skip to content

pantoken / platforms/swift/src / GenerateSwiftOptions

接口: GenerateSwiftOptions

实验性

用于 generateSwift / toSwift 的选项。

属性

outDir

outDir: string

实验性

输出目录。


theme?

optional theme?: Theme

实验性

要生成的主题(默认:"rebrand")。


mode?

optional mode?: Mode

实验性

解析哪个 light-dark() 模式(默认:"light")。


className?

optional className?: string

实验性

生成的 Swift 类名(默认:PanTokens)。


icons?

optional icons?: string[]

实验性

要作为保留矢量的 imageset 一并输出到 Icons.xcassets 的图标名称。