Skip to content

pantoken-root / swift

swift ​

Compatibility ​

Target: Swift iOS. Current format: UIKit SwiftPM module, runtime token check, and compiled Icons.xcassets. Tested environment: Xcode 27.0 (27A266a), Swift 6.4, iOS Simulator SDK/runtime 27.0, iPhone 18 Pro, arm64 iOS 15 deployment target. Runtime tested only on iOS Simulator 27.0; this does not establish an iOS 15 runtime floor. No watchOS or tvOS claim.

Full compatibility matrix

實驗性

@pantoken/swift — 透過 Style Dictionary 將 Instructure 設計代幣匯出為 Swift。

這是 pantoken 的原生證明:它將 IR 攤平成具體、單一模式的值 (@pantoken/core 的 toStyleDictionary),保留原生類型的代幣(顏色、尺寸、 數值),並將它們交給 @pantoken/sd-config。將 platform 換成 flutter/compose 會重用相同的路徑。

產生的 Swift 使用 UIKit,並以 iOS 為目標。 mise run verify:swift:syntax 僅解析其 source; mise run verify:swift:host 需要完整的 Xcode 與 iOS Simulator SDK 來為其進行型別檢查。

介面 ​

函式 ​

參考 ​

default ​

重新命名並重新匯出 generateSwift