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 — Style Dictionary के माध्यम से Instructure डिज़ाइन टोकन को Swift के रूप में निर्यात करें.

यह pantoken का मूल प्रमाण है: यह IR को ठोस, एक-मोड मानों में सपाट कर देता है (@pantoken/core के toStyleDictionary), नैटिव-टाइप किए गए टोकनों (रंग, आयाम, संख्याएँ) को रखता है, और उन्हें @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