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-ի դիզայնի token-ները որպես Swift՝ օգտագործելով Style Dictionary.

Սա pantoken-ի բնիկ ապացույցն է. այն հարթեցնում է IR-ը կոնկրետ, միակ ռեժիմի արժեքների՝ (@pantoken/core-ի toStyleDictionary), պահպանում է բնիկ տիպավորված token-ները (գույներ, չափեր, թվեր), և փոխանցում դրանք @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