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 — انتشار توکن‌های طراحی Instructure به‌صورت Swift از طریق Style Dictionary.

این اثبات بومی pantoken است: IR را به مقادیر ملموسِ تک‌حالت (@pantoken/core's 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 را دوباره صادر می‌کند