Skip to content

pantoken-root / 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[]

實驗性

要同時輸出到 Icons.xcassets 的圖示名稱,作為保留向量的 imageset。