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 はその ソースを解析するだけです; mise run verify:swift:host が型チェックするにはフルの Xcode と iOS Simulator SDK が必要です。

インターフェース ​

関数 ​

参照 ​

default ​

generateSwift の名前を変更し再エクスポートします