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

Thử nghiệm

@pantoken/swift — xuất token thiết kế Instructure dưới dạng Swift qua Style Dictionary.

Đây là minh chứng gốc của pantoken: nó làm phẳng IR thành các giá trị cụ thể, đơn chế độ (@pantoken/core's toStyleDictionary), giữ các token có kiểu nguyên thủy (màu sắc, kích thước, số), và giao chúng cho @pantoken/sd-config. Việc đổi platform sang flutter/compose tái sử dụng cùng một đường dẫn.

Swift được tạo sử dụng UIKit và nhắm tới iOS. mise run verify:swift:syntax chỉ phân tích cú pháp của nó source; mise run verify:swift:host cần Xcode đầy đủ và iOS Simulator SDK để kiểm tra kiểu cho nó.

Giao diện ​

Hàm ​

Tham chiếu ​

default ​

Đổi tên và xuất lại generateSwift