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 — emit Instructure design tokens as Swift via Style Dictionary.

This is pantoken's native proof: it flattens the IR to concrete, single-mode values (@pantoken/core's toStyleDictionary), keeps the natively-typed tokens (colours, dimensions, numbers), and hands them to @pantoken/sd-config. Swapping platform to flutter/compose reuses the same path.

The generated Swift uses UIKit and targets iOS. mise run verify:swift:syntax only parses its source; mise run verify:swift:host needs full Xcode and the iOS Simulator SDK to type-check it.

Interfaces ​

Functions ​

References ​

default ​

Renames and re-exports generateSwift