peachsim 0.1.1738 → 0.1.1744

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (327) hide show
  1. package/README.md +4 -0
  2. package/cli/app-catalog.ts +47 -23
  3. package/cli/app-fonts.ts +19 -1
  4. package/cli/command-registry.ts +3 -0
  5. package/cli/commands/control.ts +67 -16
  6. package/cli/commands/device.ts +3 -1
  7. package/cli/commands/doctor.ts +1 -4
  8. package/cli/commands/inspect/settling.ts +6 -1
  9. package/cli/commands/inspect/wait-ready.ts +22 -2
  10. package/cli/commands/package.ts +22 -20
  11. package/cli/commands/push.ts +56 -0
  12. package/cli/commands/serve.ts +9 -0
  13. package/cli/commands/shell-url.ts +37 -9
  14. package/cli/commands/swift.ts +1 -1
  15. package/cli/current-sim.ts +27 -0
  16. package/cli/drivers/linux-browser-libs.lock.json +323 -1
  17. package/cli/drivers/linux-browser-libs.ts +8 -6
  18. package/cli/drivers/playwright.ts +5 -1
  19. package/cli/internal-child.ts +11 -1
  20. package/cli/main.ts +6 -0
  21. package/cli/native-input.ts +1 -7
  22. package/cli/outbound-endpoints.ts +9 -1
  23. package/cli/packaged-app-launcher.ts +3 -1
  24. package/cli/scene-video.ts +4 -0
  25. package/cli/ws-bridge.ts +3 -1
  26. package/detox/index.ts +9 -4
  27. package/dist-lib/agent-daemon-client.cjs +1 -1
  28. package/dist-lib/agent-events.cjs +1 -1
  29. package/dist-lib/attached-projects.cjs +1 -1
  30. package/dist-lib/auth/shared-session.cjs +1 -1
  31. package/dist-lib/backend-origin.cjs +1 -1
  32. package/dist-lib/beta.cjs +1 -1
  33. package/dist-lib/beta.mjs +1 -1
  34. package/dist-lib/bridge-constants.cjs +1 -1
  35. package/dist-lib/bridge-contract-input.cjs +1 -1
  36. package/dist-lib/bridge-contract-input.mjs +1 -1
  37. package/dist-lib/bridge-contract.cjs +1 -1
  38. package/dist-lib/bridge-contract.mjs +1 -1
  39. package/dist-lib/bundle-channel.cjs +7372 -3675
  40. package/dist-lib/capture-contract.cjs +1 -1
  41. package/dist-lib/capture-contract.mjs +1 -1
  42. package/dist-lib/cloud-contract.cjs +1 -1
  43. package/dist-lib/cloud-contract.mjs +1 -1
  44. package/dist-lib/cloud-test-args.cjs +1 -1
  45. package/dist-lib/cloud-test-args.mjs +1 -1
  46. package/dist-lib/cloud.cjs +1 -1
  47. package/dist-lib/cloud.mjs +1 -1
  48. package/dist-lib/config.cjs +1 -1
  49. package/dist-lib/config.mjs +1 -1
  50. package/dist-lib/detox/index.cjs +22 -8
  51. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  52. package/dist-lib/expo-swift-bundle.cjs +6340 -3064
  53. package/dist-lib/expo-swift-metadata.cjs +14 -2
  54. package/dist-lib/expo-swift-metadata.mjs +14 -2
  55. package/dist-lib/home-paths.cjs +1 -1
  56. package/dist-lib/host/bridge-host.cjs +6524 -2720
  57. package/dist-lib/host/fetch-proxy-handler.cjs +8 -7
  58. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  59. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  60. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  61. package/dist-lib/host/websocket-proxy.cjs +6 -3
  62. package/dist-lib/index.cjs +97 -31
  63. package/dist-lib/jump-to-source-babel.cjs +1 -1
  64. package/dist-lib/jump-to-source-native.cjs +1 -1
  65. package/dist-lib/kotlin-host.cjs +1 -1
  66. package/dist-lib/menu.cjs +1 -1
  67. package/dist-lib/menu.mjs +1 -1
  68. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  69. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  70. package/dist-lib/metro-production-bundle.cjs +1 -1
  71. package/dist-lib/metro-production-bundle.mjs +1 -1
  72. package/dist-lib/metro.cjs +71 -29
  73. package/dist-lib/native-app-identity-project.cjs +53 -22
  74. package/dist-lib/native-app-identity-project.mjs +53 -22
  75. package/dist-lib/native-app-identity.cjs +10 -3
  76. package/dist-lib/native-app-identity.mjs +10 -3
  77. package/dist-lib/native-firebase-metadata.cjs +1 -1
  78. package/dist-lib/native-firebase-metadata.mjs +1 -1
  79. package/dist-lib/plist.cjs +1 -1
  80. package/dist-lib/plist.mjs +1 -1
  81. package/dist-lib/profiles.cjs +1 -1
  82. package/dist-lib/public-brand.cjs +1 -1
  83. package/dist-lib/public-origins-lib-esm.json +25 -23
  84. package/dist-lib/public-origins-lib.json +111 -79
  85. package/dist-lib/react-native-host-modules.cjs +1 -1
  86. package/dist-lib/react-native-host-modules.mjs +1 -1
  87. package/dist-lib/reap-browser.cjs +1 -1
  88. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  89. package/dist-lib/sdk.cjs +4 -1
  90. package/dist-lib/sdk.mjs +4 -1
  91. package/dist-lib/skills.cjs +40549 -37613
  92. package/dist-lib/swift-compile.cjs +2054 -388
  93. package/dist-lib/swift-compile.mjs +1976 -312
  94. package/dist-lib/swift-package.cjs +1 -1
  95. package/dist-lib/swift-package.mjs +1 -1
  96. package/dist-lib/swift-submit.cjs +2 -2
  97. package/dist-lib/swift-submit.mjs +2 -2
  98. package/dist-lib/swift-toolchain.cjs +68 -8
  99. package/dist-lib/swift.cjs +1 -1
  100. package/dist-lib/vite-swift.cjs +5867 -2646
  101. package/dist-lib/vite.cjs +18 -8
  102. package/dist-lib/worklet-executable.cjs +1 -1
  103. package/dist-lib/worklet-executable.mjs +1 -1
  104. package/dist-types/packages/peach-compat/src/stubs/screen-transition-math.d.ts +1 -0
  105. package/dist-types/packages/peach-engine/src/cli-companion.d.ts +1 -0
  106. package/dist-types/packages/peach-engine/src/engine/canvaskit-renderer.d.ts +2 -0
  107. package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +0 -3
  108. package/dist-types/packages/peach-engine/src/engine/node.d.ts +6 -0
  109. package/dist-types/packages/peach-engine/src/engine/paint-boundary.d.ts +1 -0
  110. package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +25 -3
  111. package/dist-types/packages/peach-engine/src/engine/scroll-platform.d.ts +1 -15
  112. package/dist-types/packages/peach-engine/src/engine/scroll.d.ts +1 -3
  113. package/dist-types/packages/peach-engine/src/engine/text-first-baseline.d.ts +1 -0
  114. package/dist-types/packages/peach-engine/src/engine/types.d.ts +23 -0
  115. package/dist-types/packages/peach-engine/src/ios/chrome-metrics.d.ts +6 -0
  116. package/dist-types/packages/peach-engine/src/metro-identity-contract.d.ts +33 -0
  117. package/dist-types/packages/peach-engine/src/preview/bundle-layout.d.ts +1 -1
  118. package/dist-types/packages/peach-engine/src/remote-stream/scene-recording.d.ts +2 -0
  119. package/dist-types/packages/peach-engine/src/render-worker/compositor-gpu.d.ts +1 -1
  120. package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +2 -0
  121. package/dist-types/packages/peach-engine/src/render-worker/metro-bundle-metadata.d.ts +28 -0
  122. package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +21 -1
  123. package/dist-types/packages/peach-engine/src/render-worker/prepared-boot-bundle.d.ts +7 -0
  124. package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +8 -0
  125. package/dist-types/packages/peach-engine/src/render-worker/scroll-mirror.d.ts +1 -0
  126. package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +5 -0
  127. package/dist-types/packages/peach-engine/src/render-worker/test-bridge-protocol.d.ts +3 -3
  128. package/dist-types/packages/peach-engine/src/render-worker/webgpu-frame-transaction.d.ts +1 -0
  129. package/dist-types/packages/peach-engine/src/render-worker/webgpu-readback-scheduler.d.ts +1 -1
  130. package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +1 -0
  131. package/dist-types/packages/peach-engine/src/rolldown-bundle-inventory.d.ts +8 -1
  132. package/dist-types/packages/peach-engine/src/rolldown-production-fingerprint.d.ts +1 -4
  133. package/dist-types/packages/peach-engine/src/rolldown-production-module.d.ts +12 -0
  134. package/dist-types/packages/peach-engine/src/rolldown-production-roles.d.ts +6 -0
  135. package/dist-types/packages/peach-engine/src/settings/devices.d.ts +6 -1
  136. package/dist-types/packages/peach-engine/src/settings/duo-fold-bus.d.ts +1 -0
  137. package/dist-types/packages/peach-engine/src/shell-events.d.ts +4 -0
  138. package/dist-types/packages/peach-kit/src/capabilities.d.ts +7 -0
  139. package/package.json +2 -1
  140. package/runtime-companion.json +1 -1
  141. package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h +1 -0
  142. package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetworkErrors.h +257 -0
  143. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFByteOrder.h +305 -0
  144. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +2 -0
  145. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGAffineTransform.h +204 -0
  146. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBitmapContext.h +260 -0
  147. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColor.h +164 -0
  148. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorConversionInfo.h +101 -0
  149. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorSpace.h +510 -0
  150. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGContext.h +1132 -0
  151. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGConvertColorDataWithFormat.h +34 -0
  152. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDataConsumer.h +83 -0
  153. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDataProvider.h +197 -0
  154. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGEXRToneMappingGamma.h +36 -0
  155. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGError.h +38 -0
  156. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGFont.h +312 -0
  157. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGFunction.h +106 -0
  158. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGradient.h +123 -0
  159. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGITUToneMapping.h +31 -0
  160. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGImage.h +409 -0
  161. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGLayer.h +78 -0
  162. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFArray.h +120 -0
  163. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContentStream.h +55 -0
  164. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContext.h +535 -0
  165. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDictionary.h +133 -0
  166. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDocument.h +252 -0
  167. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFMarkedContentItem.h +37 -0
  168. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFObject.h +67 -0
  169. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFOperatorTable.h +51 -0
  170. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFPage.h +101 -0
  171. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFScanner.h +123 -0
  172. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFStream.h +44 -0
  173. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFString.h +52 -0
  174. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFStructureElement.h +87 -0
  175. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPath.h +441 -0
  176. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPattern.h +89 -0
  177. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGRenderingBufferProvider.h +49 -0
  178. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGShading.h +124 -0
  179. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGToneMapping.h +85 -0
  180. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h +44 -252
  181. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Modules/module.modulemap +1 -0
  182. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/CFNetworkErrors.h +257 -0
  183. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes +0 -6
  184. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +356 -61
  185. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/NSURLSession+Network.h +32 -0
  186. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/Network.h +51 -0
  187. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/advertise_descriptor.h +193 -0
  188. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/browse_descriptor.h +163 -0
  189. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/browse_result.h +207 -0
  190. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/browser.h +285 -0
  191. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/connection.h +714 -0
  192. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/connection_group.h +629 -0
  193. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/connection_report.h +932 -0
  194. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/content_context.h +229 -0
  195. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/endpoint.h +390 -0
  196. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/error.h +135 -0
  197. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/ethernet_channel.h +349 -0
  198. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/framer_options.h +1187 -0
  199. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/group_descriptor.h +184 -0
  200. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/interface.h +150 -0
  201. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/ip_options.h +351 -0
  202. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/listener.h +438 -0
  203. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/nw_object.h +200 -0
  204. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/parameters.h +1205 -0
  205. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/path.h +392 -0
  206. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/path_monitor.h +216 -0
  207. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/privacy_context.h +188 -0
  208. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/protocol_options.h +126 -0
  209. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/proxy_config.h +357 -0
  210. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/quic_options.h +889 -0
  211. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/resolver_config.h +94 -0
  212. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/tcp_options.h +459 -0
  213. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/tls_options.h +115 -0
  214. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/txt_record.h +432 -0
  215. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/udp_options.h +112 -0
  216. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/ws_options.h +743 -0
  217. package/sdk/ios/System/Library/Frameworks/Network.framework/Modules/module.modulemap +9 -0
  218. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h +395 -0
  219. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CABase.h +132 -0
  220. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CADisplayLink.h +107 -0
  221. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEmitterCell.h +153 -0
  222. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEmitterLayer.h +151 -0
  223. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAFrameRateRange.h +40 -0
  224. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAGradientLayer.h +78 -0
  225. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h +1078 -0
  226. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTiming.h +97 -0
  227. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTimingFunction.h +67 -0
  228. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAReplicatorLayer.h +65 -0
  229. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAScrollLayer.h +64 -0
  230. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAShapeLayer.h +135 -0
  231. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATextLayer.h +99 -0
  232. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATiledLayer.h +67 -0
  233. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATransaction.h +124 -0
  234. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATransform3D.h +138 -0
  235. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATransformLayer.h +40 -0
  236. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAValueFunction.h +78 -0
  237. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h +19 -38
  238. package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecureTransport.h +1757 -0
  239. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSAttributedString.h +19 -0
  240. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSParagraphStyle.h +28 -0
  241. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityConstants.h +114 -0
  242. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h +16 -0
  243. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarAppearance.h +47 -0
  244. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDataDetectors.h +20 -0
  245. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDatePicker.h +13 -0
  246. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h +16 -0
  247. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h +84 -0
  248. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizer.h +119 -0
  249. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizerSubclass.h +66 -0
  250. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHoverGestureRecognizer.h +45 -0
  251. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +161 -37
  252. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPickerView.h +76 -0
  253. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBar.h +8 -0
  254. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBarAppearance.h +78 -0
  255. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextInputTraits.h +29 -0
  256. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITouch.h +104 -0
  257. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITraitCollection.h +19 -0
  258. package/sdk/ios/usr/include/dns_sd.h +3616 -0
  259. package/sdk/ios/usr/include/dnssd.modulemap +4 -0
  260. package/sdk/ios/usr/include/module.modulemap +1 -0
  261. package/sdk/ios/usr/include/sys/socketvar.h +191 -0
  262. package/sdk/ios/usr/include/sys/vsock.h +84 -0
  263. package/sdk/native-hashes.json +1 -1
  264. package/skills/contrast/SKILL.md +6 -5
  265. package/skills/peach-debug/SKILL.md +68 -264
  266. package/skills/peach-debug/references/accessibility.md +37 -73
  267. package/skills/peach-debug/references/commands.md +2 -2
  268. package/skills/peach-debug/references/events.md +74 -0
  269. package/skills/peach-perf/SKILL.md +64 -401
  270. package/skills/peach-perf/references/presentation.md +46 -0
  271. package/skills/peach-perf/references/profiling.md +93 -0
  272. package/skills/peach-perf/references/render-counters.md +57 -0
  273. package/skills/peach-setup/SKILL.md +66 -216
  274. package/skills/peach-setup/references/native-config.md +35 -0
  275. package/skills/peach-setup/references/reporting.md +28 -0
  276. package/skills/peach-test/SKILL.md +68 -284
  277. package/skills/peach-test/references/detox.md +69 -0
  278. package/skills/peach-test/references/maestro.md +95 -0
  279. package/skills/peach-visual/SKILL.md +53 -105
  280. package/src/appPackageContract.ts +12 -1
  281. package/src/assetCatalogContract.ts +8 -1
  282. package/src/bridge-contract.ts +6 -0
  283. package/src/bundle-channel.mjs +133 -59
  284. package/src/cli-runtime.ts +8 -9
  285. package/src/configured-bundle-producer.ts +10 -0
  286. package/src/device-catalog.ts +68 -4
  287. package/src/expo-discovery-cache.ts +3 -0
  288. package/src/expo-native-workspace.ts +81 -17
  289. package/src/expo-swift-host.ts +57 -104
  290. package/src/expo-widget-assets.ts +76 -0
  291. package/src/expoSwiftContract.ts +13 -1
  292. package/src/host/websocket-proxy.ts +7 -2
  293. package/src/native-prebuilt.ts +3 -3
  294. package/src/nitro-adapter.lock.json +263 -263
  295. package/src/nitro-adapter.ts +69 -7
  296. package/src/nitro-bundle.ts +52 -24
  297. package/src/nitro-compile.ts +6 -1
  298. package/src/nitro-source.ts +82 -4
  299. package/src/nitro-superset.lock.json +103 -0
  300. package/src/nitro-superset.ts +137 -0
  301. package/src/nitroContract.ts +5 -1
  302. package/src/react-bridge-importers.ts +1 -0
  303. package/src/settingsContract.ts +26 -1
  304. package/src/swift-compile.ts +267 -68
  305. package/src/swift-compiler-digest.ts +2 -0
  306. package/src/swift-coverage/xcode-packages.ts +61 -1
  307. package/src/swift-coverage/xcode.ts +10 -12
  308. package/src/swift-cxx-reachable.ts +1 -1
  309. package/src/swift-distribution.lock.json +15 -13
  310. package/src/swift-distribution.ts +57 -26
  311. package/src/swift-host.ts +48 -35
  312. package/src/swift-link-roots.ts +45 -18
  313. package/src/swift-objc-compile.ts +78 -2
  314. package/src/swift-objc-standin.ts +3 -0
  315. package/src/swift-shared-sdk.ts +85 -1
  316. package/src/swift-standins.ts +233 -11
  317. package/src/swift-submit.ts +13 -1
  318. package/src/swift-toolchain.ts +82 -7
  319. package/src/swift-wasm-prune.ts +1629 -0
  320. package/src/turbo-bundle.ts +11 -10
  321. package/src/turbo-runtime.lock.json +16 -16
  322. package/src/vite-plugin-one.ts +12 -1
  323. package/src/vite-plugin.ts +82 -23
  324. package/src/wasm-optimize.ts +34 -0
  325. package/src/worker-system-chunks.ts +3 -3
  326. package/src/xcode-project.ts +52 -0
  327. package/src/xcode-target-members.ts +12 -1
@@ -1,25 +1,61 @@
1
1
  #pragma once
2
2
  #import <Foundation/Foundation.h>
3
- @class UIStatusBarManager;
3
+ // UIKitDefines.h macros, defined before the headers below that use them.
4
+ #ifdef __cplusplus
5
+ #define UIKIT_EXTERN extern "C" __attribute__((visibility("default")))
6
+ #else
7
+ #define UIKIT_EXTERN extern __attribute__((visibility("default")))
8
+ #endif
9
+ #define UIKIT_STATIC_INLINE static inline
10
+ #define UIKIT_AVAILABLE_TVOS_ONLY(...)
11
+ #define UIKIT_SWIFT_FORWARD_DECLARE(...)
12
+ @class UIStatusBarManager, UIScreen;
13
+ #import <UIKit/NSAttributedString.h>
14
+ #import <UIKit/NSParagraphStyle.h>
15
+ #import <UIKit/UIAccessibilityConstants.h>
4
16
  #import <UIKit/UIAppearance.h>
5
17
  #import <UIKit/UIApplication.h>
18
+ #import <UIKit/UIDataDetectors.h>
19
+ #import <UIKit/UIDatePicker.h>
20
+ #import <UIKit/UIDevice.h>
6
21
  #import <UIKit/UIInterface.h>
7
22
  #import <UIKit/UIOrientation.h>
8
23
  #import <UIKit/UIStringDrawing.h>
24
+ #import <UIKit/UITraitCollection.h>
25
+ #import <UIKit/UITextInputTraits.h>
9
26
  #import <UIKit/UIView.h>
10
27
  #import <UIKit/UIViewAnimating.h>
11
28
  #import <UIKit/UIViewController.h>
12
29
  #import <QuartzCore/QuartzCore.h>
13
30
  #import <CoreImage/CoreImage.h>
14
- #ifdef __cplusplus
15
- #define UIKIT_EXTERN extern "C" __attribute__((visibility("default")))
16
- #else
17
- #define UIKIT_EXTERN extern __attribute__((visibility("default")))
18
- #endif
19
- #define UIKIT_STATIC_INLINE static inline
20
- #define UIKIT_AVAILABLE_TVOS_ONLY(...)
21
- #define UIKIT_SWIFT_FORWARD_DECLARE(...)
31
+ typedef NS_OPTIONS(NSInteger, UIKeyModifierFlags) {
32
+ UIKeyModifierAlphaShift = 1 << 16,
33
+ UIKeyModifierShift = 1 << 17,
34
+ UIKeyModifierControl = 1 << 18,
35
+ UIKeyModifierAlternate = 1 << 19,
36
+ UIKeyModifierCommand = 1 << 20,
37
+ UIKeyModifierNumericPad = 1 << 21,
38
+ } API_AVAILABLE(ios(7.0)) API_UNAVAILABLE(watchos);
39
+ typedef NS_ENUM(NSInteger, UIDatePickerMode) {
40
+ /// Displays hour, minute, and optionally AM/PM designation depending on the locale setting (e.g. 6 | 53 | PM)
41
+ UIDatePickerModeTime,
42
+ /// Displays month, day, and year depending on the locale setting (e.g. November | 15 | 2007)
43
+ UIDatePickerModeDate,
44
+ /// Displays date, hour, minute, and optionally AM/PM designation depending on the locale setting (e.g. Wed Nov 15 | 6 | 53 | PM)
45
+ UIDatePickerModeDateAndTime,
46
+ /// Displays hour and minute (e.g. 1 | 53); only supported in `UIDatePickerStyleWheels`
47
+ UIDatePickerModeCountDownTimer,
48
+ /// Displays year and month depending on the locale setting (e.g. March | 2024); only supported in `UIDatePickerStyleWheels`
49
+ UIDatePickerModeYearAndMonth API_AVAILABLE(ios(17.4)) API_UNAVAILABLE(watchos),
50
+ } API_UNAVAILABLE(tvos, watchos);
51
+ #import <UIKit/UIEvent.h>
52
+ #import <UIKit/UITouch.h>
53
+ #import <UIKit/UIGestureRecognizer.h>
54
+ #import <UIKit/UIGestureRecognizerSubclass.h>
55
+ #import <UIKit/UIHoverGestureRecognizer.h>
56
+ #import <UIKit/UIAccessibilityConstants.h>
22
57
  NS_ASSUME_NONNULL_BEGIN
58
+ UIKIT_EXTERN NSAttributedStringKey const NSFontAttributeName API_AVAILABLE(macos(10.0), ios(6.0), tvos(9.0), watchos(2.0), visionos(1.0));
23
59
  typedef NSUInteger UIBackgroundTaskIdentifier NS_TYPED_ENUM __attribute__((availability(watchos,unavailable)));
24
60
  UIKIT_EXTERN const UIBackgroundTaskIdentifier UIBackgroundTaskInvalid __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,unavailable)));
25
61
  typedef NS_ENUM(NSInteger, UIApplicationState) { UIApplicationStateActive, UIApplicationStateInactive, UIApplicationStateBackground } __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,unavailable)));
@@ -54,8 +90,44 @@ typedef NS_ENUM(NSInteger, UIReturnKeyType) { UIReturnKeyDefault, UIReturnKeyGo,
54
90
  typedef NS_ENUM(NSInteger, UITextFieldViewMode) { UITextFieldViewModeNever, UITextFieldViewModeWhileEditing, UITextFieldViewModeUnlessEditing, UITextFieldViewModeAlways } __attribute__((availability(watchos,unavailable))) NS_SWIFT_NAME(UITextField.ViewMode);
55
91
  typedef NS_ENUM(NSInteger, UITextFieldDidEndEditingReason) { UITextFieldDidEndEditingReasonCommitted, UITextFieldDidEndEditingReasonCancelled __attribute__((availability(ios,unavailable), availability(watchos,unavailable), availability(tvos,introduced=10.0))) } __attribute__((availability(ios,introduced=10.0), availability(watchos,unavailable))) NS_SWIFT_NAME(UITextField.DidEndEditingReason);
56
92
  typedef NS_ENUM(NSInteger, NSTextAlignment) { NSTextAlignmentLeft = 0, NSTextAlignmentCenter = 1, NSTextAlignmentRight = 2, NSTextAlignmentJustified = 3, NSTextAlignmentNatural = 4 } __attribute__((availability(ios,introduced=6.0)));
93
+ static const NSUnderlineStyle NSUnderlinePatternSolid API_AVAILABLE(macos(10.0), ios(7.0), watchos(2.0), tvos(9.0), visionos(1.0)) = NSUnderlineStylePatternSolid;
94
+ static const NSUnderlineStyle NSUnderlinePatternDot API_AVAILABLE(macos(10.0), ios(7.0), watchos(2.0), tvos(9.0), visionos(1.0)) = NSUnderlineStylePatternDot;
95
+ static const NSUnderlineStyle NSUnderlinePatternDash API_AVAILABLE(macos(10.0), ios(7.0), watchos(2.0), tvos(9.0), visionos(1.0)) = NSUnderlineStylePatternDash;
96
+ static const NSUnderlineStyle NSUnderlinePatternDashDot API_AVAILABLE(macos(10.0), ios(7.0), watchos(2.0), tvos(9.0), visionos(1.0)) = NSUnderlineStylePatternDashDot;
97
+ static const NSUnderlineStyle NSUnderlinePatternDashDotDot API_AVAILABLE(macos(10.0), ios(7.0), watchos(2.0), tvos(9.0), visionos(1.0)) = NSUnderlineStylePatternDashDotDot;
57
98
  typedef NS_ENUM(NSInteger, UITableViewRowAnimation) { UITableViewRowAnimationFade, UITableViewRowAnimationRight, UITableViewRowAnimationLeft, UITableViewRowAnimationTop, UITableViewRowAnimationBottom, UITableViewRowAnimationNone, UITableViewRowAnimationMiddle, UITableViewRowAnimationAutomatic = 100 };
58
- typedef NS_OPTIONS(NSUInteger, UIInterfaceOrientationMask) { UIInterfaceOrientationMaskPortrait = 1 << 1, UIInterfaceOrientationMaskLandscapeLeft = 1 << 4, UIInterfaceOrientationMaskLandscapeRight = 1 << 3, UIInterfaceOrientationMaskAll = 30 };
99
+ static inline BOOL UIDeviceOrientationIsPortrait(UIDeviceOrientation orientation) __attribute__((availability(tvos,unavailable), availability(visionos,unavailable), availability(watchos,unavailable))) {
100
+ return ((orientation) == UIDeviceOrientationPortrait || (orientation) == UIDeviceOrientationPortraitUpsideDown);
101
+ }
102
+ static inline BOOL UIDeviceOrientationIsLandscape(UIDeviceOrientation orientation) __attribute__((availability(tvos,unavailable), availability(visionos,unavailable), availability(watchos,unavailable))) {
103
+ return ((orientation) == UIDeviceOrientationLandscapeLeft || (orientation) == UIDeviceOrientationLandscapeRight);
104
+ }
105
+ static inline __attribute__((always_inline)) BOOL UIDeviceOrientationIsFlat(UIDeviceOrientation orientation) __attribute__((availability(tvos,unavailable), availability(visionos,unavailable), availability(watchos,unavailable))) {
106
+ return ((orientation) == UIDeviceOrientationFaceUp || (orientation) == UIDeviceOrientationFaceDown);
107
+ }
108
+ static inline __attribute__((always_inline)) BOOL UIDeviceOrientationIsValidInterfaceOrientation(UIDeviceOrientation orientation) __attribute__((availability(tvos,unavailable), availability(visionos,unavailable), availability(watchos,unavailable))) {
109
+ return ((orientation) == UIDeviceOrientationPortrait || (orientation) == UIDeviceOrientationPortraitUpsideDown || (orientation) == UIDeviceOrientationLandscapeLeft || (orientation) == UIDeviceOrientationLandscapeRight);
110
+ }
111
+ typedef NSString * UIContentSizeCategory NS_TYPED_ENUM __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,unavailable)));
112
+ UIKIT_EXTERN UIContentSizeCategory const UIContentSizeCategoryUnspecified __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable)));
113
+ UIKIT_EXTERN UIContentSizeCategory const UIContentSizeCategoryExtraSmall __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,unavailable)));
114
+ UIKIT_EXTERN UIContentSizeCategory const UIContentSizeCategorySmall __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,unavailable)));
115
+ UIKIT_EXTERN UIContentSizeCategory const UIContentSizeCategoryMedium __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,unavailable)));
116
+ UIKIT_EXTERN UIContentSizeCategory const UIContentSizeCategoryLarge __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,unavailable)));
117
+ UIKIT_EXTERN UIContentSizeCategory const UIContentSizeCategoryExtraLarge __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,unavailable)));
118
+ UIKIT_EXTERN UIContentSizeCategory const UIContentSizeCategoryExtraExtraLarge __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,unavailable)));
119
+ UIKIT_EXTERN UIContentSizeCategory const UIContentSizeCategoryExtraExtraExtraLarge __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,unavailable)));
120
+ UIKIT_EXTERN UIContentSizeCategory const UIContentSizeCategoryAccessibilityMedium __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,unavailable)));
121
+ UIKIT_EXTERN UIContentSizeCategory const UIContentSizeCategoryAccessibilityLarge __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,unavailable)));
122
+ UIKIT_EXTERN UIContentSizeCategory const UIContentSizeCategoryAccessibilityExtraLarge __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,unavailable)));
123
+ UIKIT_EXTERN UIContentSizeCategory const UIContentSizeCategoryAccessibilityExtraExtraLarge __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,unavailable)));
124
+ UIKIT_EXTERN UIContentSizeCategory const UIContentSizeCategoryAccessibilityExtraExtraExtraLarge __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,unavailable)));
125
+ typedef NS_ENUM(NSInteger, UISceneActivationState) {
126
+ UISceneActivationStateUnattached = -1,
127
+ UISceneActivationStateForegroundActive,
128
+ UISceneActivationStateForegroundInactive,
129
+ UISceneActivationStateBackground
130
+ } __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable)));
59
131
 
60
132
  typedef NS_ENUM(NSInteger, UIBlurEffectStyle) { UIBlurEffectStyleExtraLight, UIBlurEffectStyleLight, UIBlurEffectStyleDark, UIBlurEffectStyleExtraDark __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))), UIBlurEffectStyleRegular __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))), UIBlurEffectStyleProminent __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))), UIBlurEffectStyleSystemUltraThinMaterial __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable), availability(tvos,unavailable))), UIBlurEffectStyleSystemThinMaterial __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable), availability(tvos,unavailable))), UIBlurEffectStyleSystemMaterial __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable), availability(tvos,unavailable))), UIBlurEffectStyleSystemThickMaterial __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable), availability(tvos,unavailable))), UIBlurEffectStyleSystemChromeMaterial __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable), availability(tvos,unavailable))), UIBlurEffectStyleSystemUltraThinMaterialLight __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable), availability(tvos,unavailable))), UIBlurEffectStyleSystemThinMaterialLight __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable), availability(tvos,unavailable))), UIBlurEffectStyleSystemMaterialLight __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable), availability(tvos,unavailable))), UIBlurEffectStyleSystemThickMaterialLight __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable), availability(tvos,unavailable))), UIBlurEffectStyleSystemChromeMaterialLight __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable), availability(tvos,unavailable))), UIBlurEffectStyleSystemUltraThinMaterialDark __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable), availability(tvos,unavailable))), UIBlurEffectStyleSystemThinMaterialDark __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable), availability(tvos,unavailable))), UIBlurEffectStyleSystemMaterialDark __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable), availability(tvos,unavailable))), UIBlurEffectStyleSystemThickMaterialDark __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable), availability(tvos,unavailable))), UIBlurEffectStyleSystemChromeMaterialDark __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable), availability(tvos,unavailable))) } __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,unavailable)));
61
133
  typedef NS_ENUM(NSInteger, UIAlertActionStyle) { UIAlertActionStyleDefault = 0, UIAlertActionStyleCancel, UIAlertActionStyleDestructive } __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,unavailable)));
@@ -66,6 +138,8 @@ typedef NSString * UIFontTextStyle NS_TYPED_ENUM __attribute__((availability(wat
66
138
  UIKIT_EXTERN UIFontTextStyle const UIFontTextStyleHeadline __attribute__((availability(ios,introduced=7.0), availability(watchos,introduced=2.0)));
67
139
  UIKIT_STATIC_INLINE UIEdgeInsets UIEdgeInsetsMake(CGFloat top, CGFloat left, CGFloat bottom, CGFloat right) __attribute__((availability(watchos,introduced=2.0))) { UIEdgeInsets insets = {top, left, bottom, right}; return insets; }
68
140
  UIKIT_EXTERN const UIEdgeInsets UIEdgeInsetsZero __attribute__((availability(watchos,introduced=2.0)));
141
+ UIKIT_STATIC_INLINE BOOL UIEdgeInsetsEqualToEdgeInsets(UIEdgeInsets insets1, UIEdgeInsets insets2) __attribute__((availability(watchos,introduced=2.0))) { return insets1.left == insets2.left && insets1.top == insets2.top && insets1.right == insets2.right && insets1.bottom == insets2.bottom; }
142
+ UIKIT_EXTERN NSString *NSStringFromCGSize(CGSize size) __attribute__((availability(watchos,introduced=2.0)));
69
143
  static inline BOOL UIInterfaceOrientationIsLandscape(UIInterfaceOrientation orientation) __attribute__((availability(tvos,unavailable), availability(watchos,unavailable))) {
70
144
  return ((orientation) == UIInterfaceOrientationLandscapeLeft || (orientation) == UIInterfaceOrientationLandscapeRight);
71
145
  }
@@ -78,7 +152,6 @@ typedef NS_ENUM(NSInteger, UIUserInterfaceIdiom) { UIUserInterfaceIdiomUnspecifi
78
152
  typedef NS_ENUM(NSInteger, UIScrollViewContentInsetAdjustmentBehavior) { UIScrollViewContentInsetAdjustmentAutomatic, UIScrollViewContentInsetAdjustmentScrollableAxes, UIScrollViewContentInsetAdjustmentNever, UIScrollViewContentInsetAdjustmentAlways, } __attribute__((availability(ios,introduced=11.0), availability(tvos,introduced=11.0))) __attribute__((availability(watchos,unavailable)));
79
153
  typedef NS_OPTIONS(NSUInteger, UIRectEdge) { UIRectEdgeNone = 0, UIRectEdgeTop = 1 << 0, UIRectEdgeLeft = 1 << 1, UIRectEdgeBottom = 1 << 2, UIRectEdgeRight = 1 << 3, UIRectEdgeAll = UIRectEdgeTop | UIRectEdgeLeft | UIRectEdgeBottom | UIRectEdgeRight } __attribute__((availability(ios,introduced=7.0), availability(watchos,introduced=2.0)));
80
154
  typedef NS_ENUM(NSInteger, UIModalPresentationStyle) { UIModalPresentationFullScreen = 0, UIModalPresentationPageSheet __attribute__((availability(ios,introduced=3.2))) __attribute__((availability(tvos,unavailable))), UIModalPresentationFormSheet __attribute__((availability(ios,introduced=3.2), availability(tvos,introduced=26.0))), UIModalPresentationCurrentContext __attribute__((availability(ios,introduced=3.2))), UIModalPresentationCustom __attribute__((availability(ios,introduced=7.0))), UIModalPresentationOverFullScreen __attribute__((availability(ios,introduced=8.0))), UIModalPresentationOverCurrentContext __attribute__((availability(ios,introduced=8.0))), UIModalPresentationPopover __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(tvos,unavailable))), UIModalPresentationBlurOverFullScreen __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))), UIModalPresentationNone __attribute__((availability(ios,introduced=7.0))) = -1, UIModalPresentationAutomatic __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable))) = -2, } __attribute__((availability(watchos,unavailable)));
81
- typedef NS_ENUM(NSInteger, UIGestureRecognizerState) { UIGestureRecognizerStatePossible, UIGestureRecognizerStateBegan, UIGestureRecognizerStateChanged, UIGestureRecognizerStateEnded, UIGestureRecognizerStateCancelled, UIGestureRecognizerStateFailed, UIGestureRecognizerStateRecognized = UIGestureRecognizerStateEnded } __attribute__((availability(watchos,unavailable)));
82
155
  typedef NS_ENUM(NSInteger, UIButtonType) { UIButtonTypeCustom = 0, UIButtonTypeSystem __attribute__((availability(ios,introduced=7.0))), UIButtonTypeDetailDisclosure, UIButtonTypeInfoLight, UIButtonTypeInfoDark, UIButtonTypeContactAdd, UIButtonTypePlain __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(ios,unavailable), availability(watchos,unavailable))), UIButtonTypeClose __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable), availability(watchos,unavailable))), UIButtonTypeRoundedRect = UIButtonTypeSystem } __attribute__((availability(watchos,unavailable)));
83
156
  typedef NS_ENUM(NSInteger, UIAlertControllerStyle) { UIAlertControllerStyleActionSheet = 0, UIAlertControllerStyleAlert } __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,unavailable)));
84
157
  typedef NSString * UITransitionContextViewControllerKey NS_TYPED_ENUM __attribute__((availability(watchos,unavailable)));
@@ -200,7 +273,10 @@ NS_SWIFT_UI_ACTOR @interface UIView : UIResponder <NSCoding, UIAppearance, UICoo
200
273
  - (nullable UIView *)snapshotViewAfterScreenUpdates:(BOOL)afterUpdates __attribute__((availability(ios,introduced=7.0)));
201
274
  @end
202
275
  @interface UIView (UIViewGestureRecognizers)
203
- - (void)addGestureRecognizer:(UIGestureRecognizer*)gestureRecognizer __attribute__((availability(ios,introduced=3.2)));
276
+ @property(nullable, nonatomic,copy) NSArray<__kindof UIGestureRecognizer *> *gestureRecognizers API_AVAILABLE(ios(3.2));
277
+ - (void)addGestureRecognizer:(UIGestureRecognizer*)gestureRecognizer API_AVAILABLE(ios(3.2));
278
+ - (void)removeGestureRecognizer:(UIGestureRecognizer*)gestureRecognizer API_AVAILABLE(ios(3.2));
279
+ - (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer API_AVAILABLE(ios(6.0));
204
280
  @end
205
281
  @interface UIView (UIViewKeyframeAnimations)
206
282
  + (void)animateKeyframesWithDuration:(NSTimeInterval)duration delay:(NSTimeInterval)delay options:(UIViewKeyframeAnimationOptions)options animations:(void (^)(void))animations completion:(void (^ __nullable)(BOOL finished))completion __attribute__((availability(ios,introduced=7.0)));
@@ -226,6 +302,7 @@ NS_SWIFT_UI_ACTOR @interface UIView : UIResponder <NSCoding, UIAppearance, UICoo
226
302
  @property(nonatomic) BOOL accessibilityIgnoresInvertColors __attribute__((availability(ios,introduced=11.0), availability(tvos,introduced=11.0))) __attribute__((availability(watchos,unavailable)));
227
303
  @end
228
304
  @interface UIView (UIViewHierarchy)
305
+ - (BOOL)isDescendantOfView:(UIView *)view;
229
306
  - (void)layoutSubviews;
230
307
  @property(nullable, nonatomic,readonly) UIWindow *window;
231
308
  - (void)insertSubview:(UIView *)view belowSubview:(UIView *)siblingSubview;
@@ -246,10 +323,14 @@ NS_SWIFT_UI_ACTOR @interface UIView : UIResponder <NSCoding, UIAppearance, UICoo
246
323
  @interface UIView (UIConstraintBasedCompatibility)
247
324
  @property (nonatomic) BOOL translatesAutoresizingMaskIntoConstraints __attribute__((availability(ios,introduced=6.0)));
248
325
  @end
326
+ @interface UIView (UIConstraintBasedLayoutLayering)
327
+ @property(nonatomic, readonly) CGSize intrinsicContentSize API_AVAILABLE(ios(6.0));
328
+ @end
249
329
  NS_SWIFT_UI_ACTOR @interface UIViewController : UIResponder <NSCoding, UITraitEnvironment, UIContentContainer>
250
330
  - (instancetype)initWithNibName:(nullable NSString *)nibNameOrNil bundle:(nullable NSBundle *)nibBundleOrNil NS_DESIGNATED_INITIALIZER;
251
331
  - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
252
332
  @property (null_resettable, nonatomic, strong) UIView *view;
333
+ @property(nonatomic, readonly, getter=isBeingDismissed) BOOL beingDismissed API_AVAILABLE(ios(5.0));
253
334
  - (void)presentViewController:(UIViewController *)viewControllerToPresent animated:(BOOL)flag completion:(void (^ _Nullable)(void))completion;
254
335
  - (void)dismissViewControllerAnimated:(BOOL)flag completion:(void (^ _Nullable)(void))completion;
255
336
  - (void)presentModalViewController:(UIViewController *)modalViewController animated:(BOOL)animated __attribute__((availability(ios,introduced=2.0,deprecated=6.0,message=""))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(visionos,unavailable), availability(watchos,unavailable)));
@@ -290,15 +371,19 @@ NS_SWIFT_UI_ACTOR @interface UIViewController : UIResponder <NSCoding, UITraitEn
290
371
  NS_SWIFT_UI_ACTOR @interface UIWindow : UIView
291
372
  @property(nullable, nonatomic, weak) UIWindowScene *windowScene __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable)));
292
373
  @property(nonatomic,readonly,getter=isKeyWindow) BOOL keyWindow;
374
+ @property(nonatomic,strong) UIScreen *screen API_AVAILABLE(ios(3.2)) API_UNAVAILABLE(visionos);
293
375
  @property(nullable, nonatomic,strong) UIViewController *rootViewController __attribute__((availability(ios,introduced=4.0)));
294
376
  @end
295
377
  NS_SWIFT_UI_ACTOR @interface UIScreen : NSObject
378
+ @property(class, nonatomic, readonly) NSArray<UIScreen *> *screens API_DEPRECATED("Use UIApplication.shared.openSessions to find open sessions with scenes from other screens", ios(3.2, 16.0), visionos(1.0, 1.0)) API_UNAVAILABLE(watchos);
379
+ @property(nonatomic,readonly) CGRect bounds;
296
380
  @property (nonatomic, readonly) CGFloat potentialEDRHeadroom __attribute__((availability(ios,introduced=16.0))) __attribute__((availability(watchos,unavailable)));
297
381
  @property (nonatomic, readonly) CGFloat currentEDRHeadroom __attribute__((availability(ios,introduced=16.0))) __attribute__((availability(watchos,unavailable)));
298
382
  @property(nonatomic,readonly) CGFloat scale __attribute__((availability(ios,introduced=4.0)));
299
383
  @property(class, nonatomic, readonly) UIScreen *mainScreen __attribute__((availability(ios,introduced=2.0,deprecated=26.0,message="Use a UIScreen instance found through context instead (i.e, view.window.windowScene.screen), or for properties like UIScreen.scale with trait equivalents, use a traitCollection found through context."), availability(tvos,introduced=9.0,deprecated=26.0,message="Use a UIScreen instance found through context instead (i.e, view.window.windowScene.screen), or for properties like UIScreen.scale with trait equivalents, use a traitCollection found through context."), availability(visionos,introduced=1.0,deprecated=26.0,message="Use a UIScreen instance found through context instead (i.e, view.window.windowScene.screen), or for properties like UIScreen.scale with trait equivalents, use a traitCollection found through context."))) __attribute__((availability(watchos,unavailable)));
300
384
  @end
301
385
  NS_SWIFT_UI_ACTOR @interface UIScene : UIResponder
386
+ @property (nonatomic, readonly) UISceneActivationState activationState;
302
387
  @end
303
388
 
304
389
  @class UISceneSession, UISceneConnectionOptions, UIOpenURLContext, NSUserActivity;
@@ -330,15 +415,20 @@ NS_SWIFT_UI_ACTOR @interface UIWindowScene : UIScene
330
415
  @property (nonatomic, readonly) CGRect statusBarFrame;
331
416
  @end
332
417
  @protocol UIApplicationDelegate;
418
+ typedef NSString * UIApplicationOpenExternalURLOptionsKey NS_TYPED_ENUM API_UNAVAILABLE(watchos);
333
419
  NS_SWIFT_UI_ACTOR @interface UIApplication : UIResponder
334
420
  - (UIBackgroundTaskIdentifier)beginBackgroundTaskWithExpirationHandler:(void(^ __nullable NS_SWIFT_UI_ACTOR)(void))handler __attribute__((availability(ios,introduced=4.0))) NS_REQUIRES_SUPER NS_SWIFT_NONISOLATED;
335
421
  @property (class, nonatomic, readonly) UIApplication *sharedApplication NS_EXTENSION_UNAVAILABLE_IOS("");
422
+ - (BOOL)openURL:(NSURL*)url API_DEPRECATED_WITH_REPLACEMENT("openURL:options:completionHandler:", ios(2.0, 10.0)) API_UNAVAILABLE(visionos, watchos);
423
+ - (BOOL)canOpenURL:(NSURL *)url API_DEPRECATED("Prefer attempting to open URLs and handling any failures", ios(3.0, 27.0), visionos(1.0, 27.0), tvos(9.0, 27.0)) API_UNAVAILABLE(watchos) NS_SWIFT_NONISOLATED;
424
+ - (void)openURL:(NSURL*)url options:(NSDictionary<UIApplicationOpenExternalURLOptionsKey, id> *)options completionHandler:(void (^ __nullable NS_SWIFT_UI_ACTOR)(BOOL success))completion API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(watchos);
336
425
  @property(nullable, nonatomic, assign) id<UIApplicationDelegate> delegate;
337
426
  @property(nonatomic, readonly) NSSet<UIScene *> *connectedScenes __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable)));
338
427
  @property(nonatomic,readonly) NSArray<__kindof UIWindow *> *windows __attribute__((availability(ios,introduced=2.0,deprecated=15.0,message="Use UIWindowScene.windows on a relevant window scene instead"), availability(visionos,introduced=1.0,deprecated=1.0,message="Use UIWindowScene.windows on a relevant window scene instead"))) __attribute__((availability(watchos,unavailable)));
339
428
  @property(nullable, nonatomic,readonly) UIWindow *keyWindow __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Should not be used for applications that support multiple scenes as it returns a key window across all connected scenes"))) __attribute__((availability(visionos,unavailable), availability(watchos,unavailable)));
340
429
  @property(nonatomic,readonly) CGRect statusBarFrame __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Use the statusBarManager property of the window scene instead."))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(visionos,unavailable), availability(watchos,unavailable)));
341
430
  @property(nonatomic,readonly) UIApplicationState applicationState __attribute__((availability(ios,introduced=4.0)));
431
+ @property(nonatomic,readonly) UIContentSizeCategory preferredContentSizeCategory API_AVAILABLE(ios(7.0));
342
432
  - (UIBackgroundTaskIdentifier)beginBackgroundTaskWithName:(nullable NSString *)taskName expirationHandler:(void(^ __nullable NS_SWIFT_UI_ACTOR)(void))handler __attribute__((availability(ios,introduced=7.0))) NS_REQUIRES_SUPER NS_SWIFT_NONISOLATED;
343
433
  - (void)endBackgroundTask:(UIBackgroundTaskIdentifier)identifier __attribute__((availability(ios,introduced=4.0))) NS_REQUIRES_SUPER NS_SWIFT_NONISOLATED;
344
434
  @end
@@ -352,6 +442,38 @@ NS_SWIFT_UI_ACTOR @interface UIControl : UIView
352
442
  @property (nonatomic) UIControlContentVerticalAlignment contentVerticalAlignment;
353
443
  - (void)addTarget:(nullable id)target action:(SEL)action forControlEvents:(UIControlEvents)controlEvents;
354
444
  @end
445
+ API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
446
+ @interface UIDatePicker : UIControl <NSCoding>
447
+ @property (nonatomic) UIDatePickerMode datePickerMode; // default is UIDatePickerModeDateAndTime
448
+
449
+ @property (nullable, nonatomic, strong) NSLocale *locale; // default is [NSLocale currentLocale]. setting nil returns to default
450
+ @property (null_resettable, nonatomic, copy) NSCalendar *calendar; // default is [NSCalendar currentCalendar]. setting nil returns to default
451
+ @property (nullable, nonatomic, strong) NSTimeZone *timeZone; // default is nil. use current time zone or time zone from calendar
452
+
453
+ @property (nonatomic, strong) NSDate *date; // default is current date when picker created. Ignored in countdown timer mode. for that mode, picker starts at 0:00
454
+ @property (nullable, nonatomic, strong) NSDate *minimumDate; // specify min/max date range. default is nil. When min > max, the values are ignored. Ignored in countdown timer mode
455
+ @property (nullable, nonatomic, strong) NSDate *maximumDate; // default is nil
456
+
457
+ @property (nonatomic) NSTimeInterval countDownDuration; // for UIDatePickerModeCountDownTimer, ignored otherwise. default is 0.0. limit is 23:59 (86,399 seconds). value being set is div 60 (drops remaining seconds).
458
+ @property (nonatomic) NSInteger minuteInterval; // display minutes wheel with interval. interval must be evenly divided into 60. default is 1. min is 1, max is 30
459
+
460
+ - (void)setDate:(NSDate *)date animated:(BOOL)animated; // if animated is YES, animate the wheels of time to display the new date
461
+
462
+ /// Request a style for the date picker. If the style changed, then the date picker may need to be resized and will generate a layout pass to display correctly.
463
+ @property (nonatomic, readwrite, assign) UIDatePickerStyle preferredDatePickerStyle API_AVAILABLE(ios(13.4)) API_UNAVAILABLE(tvos, watchos);
464
+
465
+ /// The style that the date picker is using for its layout. This property always returns a concrete style (never automatic).
466
+ @property (nonatomic, readonly, assign) UIDatePickerStyle datePickerStyle API_AVAILABLE(ios(13.4)) API_UNAVAILABLE(tvos, watchos);
467
+
468
+ /// When this property is YES, @c date will always round to the @c minuteInterval, and
469
+ /// only emit dates that are aligned with the @c minuteInterval. Otherwise, any changes
470
+ /// to @c date will ignore the @c minuteInterval property. Default is @c YES.
471
+ @property (nonatomic) BOOL roundsToMinuteInterval API_AVAILABLE(ios(15.0)) API_UNAVAILABLE(watchos);
472
+
473
+ @end
474
+ NS_ASSUME_NONNULL_END
475
+ #import <UIKit/UIPickerView.h>
476
+ NS_ASSUME_NONNULL_BEGIN
355
477
  NS_SWIFT_UI_ACTOR @interface UIButton : UIControl
356
478
  - (void)setBackgroundImage:(nullable UIImage *)image forState:(UIControlState)state UI_APPEARANCE_SELECTOR;
357
479
  + (instancetype)buttonWithType:(UIButtonType)buttonType;
@@ -457,16 +579,6 @@ __attribute__((availability(watchos,unavailable))) NS_SWIFT_UI_ACTOR
457
579
  - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath;
458
580
  - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath;
459
581
  @end
460
- NS_SWIFT_UI_ACTOR @protocol UIGestureRecognizerDelegate <NSObject>
461
- @optional
462
- - (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer;
463
- - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer;
464
- - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRequireFailureOfGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer __attribute__((availability(ios,introduced=7.0)));
465
- - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldBeRequiredToFailByGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer __attribute__((availability(ios,introduced=7.0)));
466
- - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch;
467
- - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceivePress:(UIPress *)press;
468
- - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveEvent:(UIEvent *)event __attribute__((availability(ios,introduced=13.4), availability(tvos,introduced=13.4)));
469
- @end
470
582
  __attribute__((availability(ios,introduced=2.0))) NS_SWIFT_UI_ACTOR @interface UITableViewCell : UIView <NSCoding, UIGestureRecognizerDelegate>
471
583
  - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(nullable NSString *)reuseIdentifier __attribute__((availability(ios,introduced=3.0))) NS_DESIGNATED_INITIALIZER;
472
584
  - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
@@ -619,17 +731,6 @@ NS_SWIFT_UI_ACTOR @interface UIAlertController : UIViewController
619
731
  + (instancetype)alertControllerWithTitle:(nullable NSString *)title message:(nullable NSString *)message preferredStyle:(UIAlertControllerStyle)preferredStyle;
620
732
  - (void)addAction:(UIAlertAction *)action;
621
733
  @end
622
- NS_SWIFT_UI_ACTOR @interface UIGestureRecognizer : NSObject
623
- - (instancetype)initWithTarget:(nullable id)target action:(nullable SEL)action NS_DESIGNATED_INITIALIZER;
624
- @property(nonatomic,readonly) UIGestureRecognizerState state;
625
- @property(nullable,nonatomic,weak) id <UIGestureRecognizerDelegate> delegate;
626
- @property(nonatomic, getter=isEnabled) BOOL enabled;
627
- - (void)requireGestureRecognizerToFail:(UIGestureRecognizer *)otherGestureRecognizer;
628
- - (CGPoint)locationInView:(nullable UIView*)view;
629
- @end
630
- @interface UIGestureRecognizer (UIGestureRecognizerProtected)
631
- @property(nonatomic,readwrite) UIGestureRecognizerState state;
632
- @end
633
734
  NS_SWIFT_UI_ACTOR @interface UITapGestureRecognizer : UIGestureRecognizer
634
735
  @end
635
736
  __attribute__((availability(ios,introduced=3.2))) __attribute__((availability(watchos,unavailable))) NS_SWIFT_UI_ACTOR @interface UILongPressGestureRecognizer : UIGestureRecognizer
@@ -638,10 +739,6 @@ __attribute__((availability(ios,introduced=3.2))) __attribute__((availability(wa
638
739
  @property (nonatomic) NSTimeInterval minimumPressDuration;
639
740
  @property (nonatomic) CGFloat allowableMovement;
640
741
  @end
641
- NS_SWIFT_UI_ACTOR @interface UIEvent : NSObject
642
- @end
643
- NS_SWIFT_UI_ACTOR @interface UITouch : NSObject
644
- @end
645
742
  @interface UIColor : NSObject <NSSecureCoding, NSCopying>
646
743
  @property(nonatomic,readonly) CGColorRef CGColor;
647
744
  - (BOOL)getWhite:(nullable CGFloat *)white alpha:(nullable CGFloat *)alpha __attribute__((availability(ios,introduced=5.0), availability(watchos,introduced=2.0)));
@@ -651,6 +748,10 @@ NS_SWIFT_UI_ACTOR @interface UITouch : NSObject
651
748
  @property(class, nonatomic, readonly) UIColor *redColor;
652
749
  + (UIColor *)colorWithRed:(CGFloat)red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha;
653
750
  + (UIColor *)colorWithWhite:(CGFloat)white alpha:(CGFloat)alpha;
751
+ + (UIColor *)colorWithDisplayP3Red:(CGFloat)displayP3Red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha API_AVAILABLE(ios(10.0), watchos(3.0));
752
+ + (nullable UIColor *)colorNamed:(NSString *)name API_AVAILABLE(ios(11.0), watchos(4.0));
753
+ + (nullable UIColor *)colorNamed:(NSString *)name inBundle:(nullable NSBundle *)bundle compatibleWithTraitCollection:(nullable UITraitCollection *)traitCollection API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(watchos);
754
+ + (UIColor *)colorWithDynamicProvider:(UIColor * (^)(UITraitCollection *traitCollection))dynamicProvider API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
654
755
  @property(class, nonatomic, readonly) UIColor *whiteColor;
655
756
  - (void)setFill;
656
757
  - (void)setStroke;
@@ -682,6 +783,8 @@ NS_SWIFT_UI_ACTOR @interface UITouch : NSObject
682
783
  @property(nullable,nonatomic,readonly) CIImage *CIImage API_AVAILABLE(ios(5.0), watchos(2.0));
683
784
  + (UIImage *)imageWithCIImage:(CIImage *)ciImage scale:(CGFloat)scale orientation:(UIImageOrientation)orientation API_AVAILABLE(ios(6.0), watchos(2.0));
684
785
  + (nullable UIImage *)imageNamed:(NSString *)name;
786
+ + (nullable UIImage *)imageNamed:(NSString *)name inBundle:(nullable NSBundle *)bundle compatibleWithTraitCollection:(nullable UITraitCollection *)traitCollection API_AVAILABLE(ios(8.0)) API_UNAVAILABLE(watchos);
787
+ + (nullable UIImage *)imageWithContentsOfFile:(NSString *)path;
685
788
  + (nullable UIImage *)imageWithData:(NSData *)data;
686
789
  + (nullable UIImage *)systemImageNamed:(NSString *)name withConfiguration:(nullable UIImageConfiguration *)configuration __attribute__((availability(ios,introduced=13.0), availability(tvos,introduced=13.0), availability(watchos,introduced=6.0)));
687
790
  @property (nonatomic, readonly) CGFloat baselineOffsetFromBottom __attribute__((availability(ios,introduced=13.0), availability(tvos,introduced=13.0), availability(watchos,introduced=6.0))) NS_REFINED_FOR_SWIFT;
@@ -741,6 +844,10 @@ __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(wa
741
844
  __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,unavailable))) NS_SWIFT_SENDABLE @interface UITraitCollection : NSObject <NSCopying, NSSecureCoding>
742
845
 
743
846
  @property (nonatomic, readonly) CGFloat displayScale;
847
+ @property (nonatomic, readonly) UIUserInterfaceStyle userInterfaceStyle API_AVAILABLE(tvos(10.0)) API_AVAILABLE(ios(12.0)) API_UNAVAILABLE(watchos);
848
+ @property (nonatomic, readonly) UIForceTouchCapability forceTouchCapability API_AVAILABLE(ios(9.0));
849
+ @property (nonatomic, readonly) UIAccessibilityContrast accessibilityContrast API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
850
+ @property (class, nonatomic, strong) UITraitCollection *currentTraitCollection API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
744
851
  @end
745
852
  __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,unavailable))) NS_SWIFT_UI_ACTOR @interface UIBarButtonItem : UIBarItem <NSCoding>
746
853
 
@@ -772,6 +879,7 @@ __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(wa
772
879
  @property(nonatomic,readonly,strong) NSString *systemName;
773
880
  @property(nonatomic,readonly,strong) NSString *systemVersion;
774
881
  @property(nonatomic,readonly,strong) NSString *model;
882
+ @property(nonatomic,readonly) UIDeviceOrientation orientation API_UNAVAILABLE(tvos, visionos);
775
883
  @property(nullable, nonatomic,readonly,strong) NSUUID *identifierForVendor __attribute__((availability(ios,introduced=6.0)));
776
884
  @property(nonatomic,readonly) UIUserInterfaceIdiom userInterfaceIdiom __attribute__((availability(ios,introduced=3.2)));
777
885
  @end
@@ -832,13 +940,29 @@ __attribute__((availability(watchos,unavailable))) NS_SWIFT_UI_ACTOR @protocol U
832
940
  __attribute__((availability(watchos,unavailable))) NS_SWIFT_UI_ACTOR @protocol UIViewControllerTransitionCoordinator <UIViewControllerTransitionCoordinatorContext>
833
941
  - (BOOL)animateAlongsideTransition:(void (^ __nullable)(id <UIViewControllerTransitionCoordinatorContext>context))animation completion:(void (^ __nullable)(id <UIViewControllerTransitionCoordinatorContext>context))completion;
834
942
  @end
943
+ // swift sees accessibilityLabel through UIKitCore's NSObject extension; the category would declare it a second time
944
+ #ifndef __swift__
835
945
  @interface NSObject (UIAccessibility)
836
946
  @property (nullable, nonatomic, copy) NSString *accessibilityLabel __attribute__((availability(watchos,unavailable))) NS_SWIFT_UI_ACTOR;
947
+ @property (nonatomic) UIAccessibilityTraits accessibilityTraits API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR;
837
948
  @end
949
+ #endif
838
950
  NS_ASSUME_NONNULL_END
951
+ // swift sees these through UIKitCore's NSValue extension; the category would declare each a second time
952
+ #ifndef __swift__
839
953
  @interface NSValue (NSValueUIGeometryExtensions)
954
+ + (NSValue *)valueWithCGPoint:(CGPoint)point;
955
+ + (NSValue *)valueWithCGVector:(CGVector)vector;
956
+ + (NSValue *)valueWithCGSize:(CGSize)size;
957
+ + (NSValue *)valueWithCGRect:(CGRect)rect;
958
+ @property(nonatomic, readonly) CGPoint CGPointValue __attribute__((availability(watchos,introduced=2.0)));
959
+ @property(nonatomic, readonly) CGVector CGVectorValue __attribute__((availability(watchos,introduced=2.0)));
840
960
  @property(nonatomic, readonly) CGSize CGSizeValue __attribute__((availability(watchos,introduced=2.0)));
961
+ @property(nonatomic, readonly) CGRect CGRectValue __attribute__((availability(watchos,introduced=2.0)));
841
962
  @end
963
+ #endif
842
964
  UIKIT_EXTERN NSNotificationName const UIApplicationDidReceiveMemoryWarningNotification __attribute__((availability(watchos,unavailable))) NS_SWIFT_NONISOLATED;
843
965
  UIKIT_EXTERN NSNotificationName const UIApplicationWillTerminateNotification __attribute__((availability(watchos,unavailable))) NS_SWIFT_NONISOLATED;
844
966
  void UIGraphicsBeginImageContext(CGSize size) __attribute__((availability(ios,introduced=2.0,deprecated=100000,message="Replace usage of UIGraphicsBeginImageContext with UIGraphicsImageRenderer."), availability(visionos,introduced=1.0,deprecated=100000,message="Replace usage of UIGraphicsBeginImageContext with UIGraphicsImageRenderer."), availability(watchos,introduced=2.0,deprecated=100000,message="Replace usage of UIGraphicsBeginImageContext with UIGraphicsImageRenderer.")));
967
+ UIKIT_EXTERN UIApplicationOpenExternalURLOptionsKey const UIApplicationOpenURLOptionUniversalLinksOnly API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(watchos);
968
+ #import <UIKit/UITabBarAppearance.h>
@@ -0,0 +1,76 @@
1
+ #pragma once
2
+ #import <Foundation/Foundation.h>
3
+ #import <CoreGraphics/CoreGraphics.h>
4
+ //
5
+ // UIPickerView.h
6
+ // UIKit
7
+ //
8
+ // Copyright (c) 2006-2018 Apple Inc. All rights reserved.
9
+ //
10
+
11
+
12
+ NS_HEADER_AUDIT_BEGIN(nullability, sendability)
13
+
14
+ @protocol UIPickerViewDataSource, UIPickerViewDelegate;
15
+
16
+ UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
17
+ @interface UIPickerView : UIView <NSCoding>
18
+
19
+ @property(nullable,nonatomic,weak) id<UIPickerViewDataSource> dataSource; // default is nil. weak reference
20
+ @property(nullable,nonatomic,weak) id<UIPickerViewDelegate> delegate; // default is nil. weak reference
21
+ @property(nonatomic) BOOL showsSelectionIndicator API_DEPRECATED("This property has no effect on iOS 7 and later.", ios(2.0, 13.0)) API_UNAVAILABLE(visionos, watchos);
22
+
23
+ // info that was fetched and cached from the data source and delegate
24
+ @property(nonatomic,readonly) NSInteger numberOfComponents;
25
+ - (NSInteger)numberOfRowsInComponent:(NSInteger)component;
26
+ - (CGSize)rowSizeForComponent:(NSInteger)component;
27
+
28
+ // returns the view provided by the delegate via pickerView:viewForRow:forComponent:reusingView:
29
+ // or nil if the row/component is not visible or the delegate does not implement
30
+ // pickerView:viewForRow:forComponent:reusingView:
31
+ - (nullable UIView *)viewForRow:(NSInteger)row forComponent:(NSInteger)component;
32
+
33
+ // Reloading whole view or single component
34
+ - (void)reloadAllComponents;
35
+ - (void)reloadComponent:(NSInteger)component;
36
+
37
+ // selection. in this case, it means showing the appropriate row in the middle
38
+ - (void)selectRow:(NSInteger)row inComponent:(NSInteger)component animated:(BOOL)animated; // scrolls the specified row to center.
39
+
40
+ - (NSInteger)selectedRowInComponent:(NSInteger)component; // returns selected row. -1 if nothing selected
41
+
42
+ @end
43
+
44
+
45
+ API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
46
+ @protocol UIPickerViewDataSource<NSObject>
47
+ @required
48
+
49
+ // returns the number of 'columns' to display.
50
+ - (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView;
51
+
52
+ // returns the # of rows in each component..
53
+ - (NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component;
54
+ @end
55
+
56
+ API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
57
+ @protocol UIPickerViewDelegate<NSObject>
58
+ @optional
59
+
60
+ // returns width of column and height of row for each component.
61
+ - (CGFloat)pickerView:(UIPickerView *)pickerView widthForComponent:(NSInteger)component API_UNAVAILABLE(tvos);
62
+ - (CGFloat)pickerView:(UIPickerView *)pickerView rowHeightForComponent:(NSInteger)component API_UNAVAILABLE(tvos);
63
+
64
+ // these methods return either a plain NSString, a NSAttributedString, or a view (e.g UILabel) to display the row for the component.
65
+ // for the view versions, we cache any hidden and thus unused views and pass them back for reuse.
66
+ // If you return back a different object, the old one will be released. the view will be centered in the row rect
67
+ - (nullable NSString *)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component API_UNAVAILABLE(tvos);
68
+ - (nullable NSAttributedString *)pickerView:(UIPickerView *)pickerView attributedTitleForRow:(NSInteger)row forComponent:(NSInteger)component API_AVAILABLE(ios(6.0)) API_UNAVAILABLE(tvos); // attributed title is favored if both methods are implemented
69
+ - (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(nullable UIView *)view API_UNAVAILABLE(tvos);
70
+
71
+ - (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component API_UNAVAILABLE(tvos);
72
+
73
+ @end
74
+
75
+ NS_HEADER_AUDIT_END(nullability, sendability)
76
+
@@ -0,0 +1,8 @@
1
+ #pragma once
2
+ #import <Foundation/Foundation.h>
3
+
4
+ typedef NS_ENUM(NSInteger, UITabBarItemPositioning) {
5
+ UITabBarItemPositioningAutomatic,
6
+ UITabBarItemPositioningFill,
7
+ UITabBarItemPositioningCentered,
8
+ } API_AVAILABLE(ios(7.0)) API_UNAVAILABLE(watchos);
@@ -0,0 +1,78 @@
1
+ #pragma once
2
+
3
+ #import <UIKit/UIBarAppearance.h>
4
+ #import <UIKit/UITabBar.h>
5
+
6
+ NS_HEADER_AUDIT_BEGIN(nullability, sendability)
7
+
8
+ UIKIT_EXTERN API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
9
+ @interface UITabBarItemStateAppearance : NSObject
10
+
11
+ - (instancetype)init NS_UNAVAILABLE;
12
+ + (instancetype)new NS_UNAVAILABLE;
13
+
14
+ @property (nonatomic, readwrite, copy) NSDictionary<NSAttributedStringKey, id> *titleTextAttributes;
15
+
16
+ @property (nonatomic, readwrite, assign) UIOffset titlePositionAdjustment;
17
+
18
+ @property (nonatomic, readwrite, copy, nullable) UIColor *iconColor;
19
+
20
+ @property (nonatomic, readwrite, assign) UIOffset badgePositionAdjustment;
21
+
22
+ @property (nonatomic, readwrite, copy, nullable) UIColor *badgeBackgroundColor;
23
+
24
+ @property (nonatomic, readwrite, copy) NSDictionary<NSAttributedStringKey, id> *badgeTextAttributes;
25
+
26
+ @property (nonatomic, readwrite, assign) UIOffset badgeTitlePositionAdjustment;
27
+
28
+ @end
29
+
30
+ typedef NS_ENUM(NSInteger, UITabBarItemAppearanceStyle) {
31
+ UITabBarItemAppearanceStyleStacked,
32
+ UITabBarItemAppearanceStyleInline,
33
+ UITabBarItemAppearanceStyleCompactInline,
34
+ } API_UNAVAILABLE(watchos);
35
+
36
+ UIKIT_EXTERN API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
37
+ @interface UITabBarItemAppearance : NSObject<NSCopying, NSSecureCoding>
38
+
39
+ - (instancetype)init;
40
+
41
+ - (instancetype)initWithStyle:(UITabBarItemAppearanceStyle)style NS_DESIGNATED_INITIALIZER;
42
+
43
+ - (instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
44
+
45
+ - (instancetype)copy;
46
+
47
+ - (void)configureWithDefaultForStyle:(UITabBarItemAppearanceStyle)style;
48
+
49
+ @property (nonatomic, readonly, strong) UITabBarItemStateAppearance *normal;
50
+
51
+ @property (nonatomic, readonly, strong) UITabBarItemStateAppearance *selected;
52
+
53
+ @property (nonatomic, readonly, strong) UITabBarItemStateAppearance *disabled;
54
+
55
+ @property (nonatomic, readonly, strong) UITabBarItemStateAppearance *focused;
56
+
57
+ @end
58
+
59
+ UIKIT_EXTERN API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
60
+ @interface UITabBarAppearance : UIBarAppearance
61
+
62
+ @property (nonatomic, readwrite, copy) UITabBarItemAppearance *stackedLayoutAppearance;
63
+
64
+ @property (nonatomic, readwrite, copy) UITabBarItemAppearance *inlineLayoutAppearance;
65
+
66
+ @property (nonatomic, readwrite, copy) UITabBarItemAppearance *compactInlineLayoutAppearance;
67
+
68
+ @property (nonatomic, readwrite, copy, nullable) UIColor *selectionIndicatorTintColor;
69
+ @property (nonatomic, readwrite, strong, nullable) UIImage *selectionIndicatorImage;
70
+
71
+ @property (nonatomic, readwrite, assign) UITabBarItemPositioning stackedItemPositioning;
72
+ @property (nonatomic, readwrite, assign) CGFloat stackedItemWidth;
73
+ @property (nonatomic, readwrite, assign) CGFloat stackedItemSpacing;
74
+
75
+ @end
76
+
77
+ NS_HEADER_AUDIT_END(nullability, sendability)
78
+
@@ -0,0 +1,29 @@
1
+ // generated by scripts/generate/swift-uikit-enums.py from the
2
+ // iOS 27.1 UIKit symbol graph and its clang integer constants.
3
+ #pragma once
4
+ #pragma clang system_header
5
+ #include <stdbool.h>
6
+ #include <stdint.h>
7
+
8
+ typedef enum __attribute__((enum_extensibility(open))) UIKeyboardAppearance : intptr_t {
9
+ UIKeyboardAppearanceDark __attribute__((swift_name("UIKeyboardAppearance.dark"))) = 1,
10
+ UIKeyboardAppearanceDefault __attribute__((swift_name("UIKeyboardAppearance.default"))) = 0,
11
+ UIKeyboardAppearanceLight __attribute__((swift_name("UIKeyboardAppearance.light"))) = 2,
12
+ UIKeyboardAppearanceAlert __attribute__((swift_name("UIKeyboardAppearance.alert"))) = 1,
13
+ } UIKeyboardAppearance;
14
+
15
+ typedef enum __attribute__((enum_extensibility(open))) UIKeyboardType : intptr_t {
16
+ UIKeyboardTypeURL __attribute__((swift_name("UIKeyboardType.URL"))) = 3,
17
+ UIKeyboardTypeASCIICapable __attribute__((swift_name("UIKeyboardType.asciiCapable"))) = 1,
18
+ UIKeyboardTypeASCIICapableNumberPad __attribute__((swift_name("UIKeyboardType.asciiCapableNumberPad"))) = 11,
19
+ UIKeyboardTypeDecimalPad __attribute__((swift_name("UIKeyboardType.decimalPad"))) = 8,
20
+ UIKeyboardTypeDefault __attribute__((swift_name("UIKeyboardType.default"))) = 0,
21
+ UIKeyboardTypeEmailAddress __attribute__((swift_name("UIKeyboardType.emailAddress"))) = 7,
22
+ UIKeyboardTypeNamePhonePad __attribute__((swift_name("UIKeyboardType.namePhonePad"))) = 6,
23
+ UIKeyboardTypeNumberPad __attribute__((swift_name("UIKeyboardType.numberPad"))) = 4,
24
+ UIKeyboardTypeNumbersAndPunctuation __attribute__((swift_name("UIKeyboardType.numbersAndPunctuation"))) = 2,
25
+ UIKeyboardTypePhonePad __attribute__((swift_name("UIKeyboardType.phonePad"))) = 5,
26
+ UIKeyboardTypeTwitter __attribute__((swift_name("UIKeyboardType.twitter"))) = 9,
27
+ UIKeyboardTypeWebSearch __attribute__((swift_name("UIKeyboardType.webSearch"))) = 10,
28
+ UIKeyboardTypeAlphabet __attribute__((swift_name("UIKeyboardType.alphabet"))) = 1,
29
+ } UIKeyboardType;