TestApp.swift 841 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // TestApp.swift
  3. // ark_ui_basic
  4. //
  5. // Audited for 6.0.87
  6. // Status: WIP
  7. @_spi(Testing)
  8. public import ark_ui_basic_core
  9. import Foundation
  10. extension _TestApp {
  11. public func run() -> Never {
  12. let semanticsIndex = CommandLine.arguments.lastIndex(of: "--semantics")
  13. if let semanticsIndex,
  14. semanticsIndex + 1 != CommandLine.arguments.count {
  15. setSemantics(CommandLine.arguments[semanticsIndex + 1])
  16. } else {
  17. setSemantics("lastest")
  18. }
  19. #if canImport(Darwin)
  20. CFPreferencesSetAppValue("AppleLanguages" as NSString, ["en"] as NSArray, kCFPreferencesCurrentApplication)
  21. // CTClearFontFallbacksCache()
  22. #endif
  23. Color.Resolved.legacyInterpolation = true
  24. let rootView = RootView()
  25. _openSwiftUIUnimplementedFailure()
  26. }
  27. }