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

Deneysel

@pantoken/swift — Instructure tasarım token'larını Style Dictionary aracılığıyla Swift olarak çıkarır.

Bu, pantoken'ın yerel kanıtıdır: IR'yi somut, tek modlu değerlere düzleştirir (@pantoken/core'un toStyleDictionary), yerel olarak türlendirilmiş token'ları (renkler, boyutlar, sayılar) korur ve bunları @pantoken/sd-config'ye iletir. platform'ü flutter/compose ile değiştirmek aynı yolu yeniden kullanır.

Oluşturulan Swift UIKit kullanır ve iOS'u hedefler. mise run verify:swift:syntax yalnızca kendi kaynağını ayrıştırır; mise run verify:swift:host onu tip denetlemek için tam Xcode ve iOS Simulator SDK'sına ihtiyaç duyar.

Arayüzler ​

Fonksiyonlar ​

Başvurular ​

default ​

generateSwift'i yeniden adlandırır ve yeniden dışa aktarır