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 diseño de Instructure como Swift mediante Style Dictionary.

Esta es la prueba nativa de pantoken: aplana el IR a valores concretos de un único modo (@pantoken/core's toStyleDictionary), conserva los tokens con tipo nativo (colores, dimensiones, números) y se los entrega a @pantoken/sd-config. Cambiar platform a flutter/compose reutiliza la misma ruta.

El Swift generado usa UIKit y está dirigido a iOS. mise run verify:swift:syntax solo analiza su source; mise run verify:swift:host necesita Xcode completo y el SDK del simulador de iOS para comprobar los tipos.

Interfaces ​

Funciones ​

Referencias ​

default ​

Renombra y reexporta generateSwift