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 คือ 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