| 1234567891011121314151617181920212223242526272829 |
- //
- // TestApp.swift
- // ark_ui_basic
- //
- // Audited for 6.0.87
- // Status: WIP
- @_spi(Testing)
- public import ark_ui_basic_core
- import Foundation
- extension _TestApp {
- public func run() -> Never {
- let semanticsIndex = CommandLine.arguments.lastIndex(of: "--semantics")
- if let semanticsIndex,
- semanticsIndex + 1 != CommandLine.arguments.count {
- setSemantics(CommandLine.arguments[semanticsIndex + 1])
- } else {
- setSemantics("lastest")
- }
- #if canImport(Darwin)
- CFPreferencesSetAppValue("AppleLanguages" as NSString, ["en"] as NSArray, kCFPreferencesCurrentApplication)
- // CTClearFontFallbacksCache()
- #endif
- Color.Resolved.legacyInterpolation = true
- let rootView = RootView()
- _openSwiftUIUnimplementedFailure()
- }
- }
|