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

Experimental

@pantoken/swift — emitir tokens de design da Instructure como Swift via Style Dictionary.

Esta é a prova nativa do pantoken: ele achata o IR em valores concretos de modo único (@pantoken/core's toStyleDictionary), mantém os tokens tipados nativamente (cores, dimensões, números) e os entrega para @pantoken/sd-config. Trocar platform por flutter/compose reutiliza o mesmo caminho.

O Swift gerado usa UIKit e tem como alvo o iOS. mise run verify:swift:syntax apenas analisa seu source; mise run verify:swift:host precisa do Xcode completo e do iOS Simulator SDK para verificar os tipos.

Interfaces ​

Funções ​

Referências ​

default ​

Renomeia e reexporta generateSwift