//
//  TestApp.swift
//  OpenSwiftUI
//
//  Audited for 6.0.87
//  Status: WIP

@_spi(Testing)
public import OpenSwiftUICore
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()
    }
}
