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.
- package/README.md +4 -0
- package/cli/app-catalog.ts +47 -23
- package/cli/app-fonts.ts +19 -1
- package/cli/command-registry.ts +3 -0
- package/cli/commands/control.ts +67 -16
- package/cli/commands/device.ts +3 -1
- package/cli/commands/doctor.ts +1 -4
- package/cli/commands/inspect/settling.ts +6 -1
- package/cli/commands/inspect/wait-ready.ts +22 -2
- package/cli/commands/package.ts +22 -20
- package/cli/commands/push.ts +56 -0
- package/cli/commands/serve.ts +9 -0
- package/cli/commands/shell-url.ts +37 -9
- package/cli/commands/swift.ts +1 -1
- package/cli/current-sim.ts +27 -0
- package/cli/drivers/linux-browser-libs.lock.json +323 -1
- package/cli/drivers/linux-browser-libs.ts +8 -6
- package/cli/drivers/playwright.ts +5 -1
- package/cli/internal-child.ts +11 -1
- package/cli/main.ts +6 -0
- package/cli/native-input.ts +1 -7
- package/cli/outbound-endpoints.ts +9 -1
- package/cli/packaged-app-launcher.ts +3 -1
- package/cli/scene-video.ts +4 -0
- package/cli/ws-bridge.ts +3 -1
- package/detox/index.ts +9 -4
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +7372 -3675
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +22 -8
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +6340 -3064
- package/dist-lib/expo-swift-metadata.cjs +14 -2
- package/dist-lib/expo-swift-metadata.mjs +14 -2
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +6524 -2720
- package/dist-lib/host/fetch-proxy-handler.cjs +8 -7
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +6 -3
- package/dist-lib/index.cjs +97 -31
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +71 -29
- package/dist-lib/native-app-identity-project.cjs +53 -22
- package/dist-lib/native-app-identity-project.mjs +53 -22
- package/dist-lib/native-app-identity.cjs +10 -3
- package/dist-lib/native-app-identity.mjs +10 -3
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +25 -23
- package/dist-lib/public-origins-lib.json +111 -79
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +4 -1
- package/dist-lib/sdk.mjs +4 -1
- package/dist-lib/skills.cjs +40549 -37613
- package/dist-lib/swift-compile.cjs +2054 -388
- package/dist-lib/swift-compile.mjs +1976 -312
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +68 -8
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +5867 -2646
- package/dist-lib/vite.cjs +18 -8
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-compat/src/stubs/screen-transition-math.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/cli-companion.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/canvaskit-renderer.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +0 -3
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/engine/paint-boundary.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +25 -3
- package/dist-types/packages/peach-engine/src/engine/scroll-platform.d.ts +1 -15
- package/dist-types/packages/peach-engine/src/engine/scroll.d.ts +1 -3
- package/dist-types/packages/peach-engine/src/engine/text-first-baseline.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +23 -0
- package/dist-types/packages/peach-engine/src/ios/chrome-metrics.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/metro-identity-contract.d.ts +33 -0
- package/dist-types/packages/peach-engine/src/preview/bundle-layout.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/remote-stream/scene-recording.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-gpu.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/metro-bundle-metadata.d.ts +28 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +21 -1
- package/dist-types/packages/peach-engine/src/render-worker/prepared-boot-bundle.d.ts +7 -0
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +8 -0
- package/dist-types/packages/peach-engine/src/render-worker/scroll-mirror.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/render-worker/test-bridge-protocol.d.ts +3 -3
- package/dist-types/packages/peach-engine/src/render-worker/webgpu-frame-transaction.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/webgpu-readback-scheduler.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/rolldown-bundle-inventory.d.ts +8 -1
- package/dist-types/packages/peach-engine/src/rolldown-production-fingerprint.d.ts +1 -4
- package/dist-types/packages/peach-engine/src/rolldown-production-module.d.ts +12 -0
- package/dist-types/packages/peach-engine/src/rolldown-production-roles.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/settings/devices.d.ts +6 -1
- package/dist-types/packages/peach-engine/src/settings/duo-fold-bus.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/shell-events.d.ts +4 -0
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +7 -0
- package/package.json +2 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h +1 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetworkErrors.h +257 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFByteOrder.h +305 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +2 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGAffineTransform.h +204 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBitmapContext.h +260 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColor.h +164 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorConversionInfo.h +101 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorSpace.h +510 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGContext.h +1132 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGConvertColorDataWithFormat.h +34 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDataConsumer.h +83 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDataProvider.h +197 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGEXRToneMappingGamma.h +36 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGError.h +38 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGFont.h +312 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGFunction.h +106 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGradient.h +123 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGITUToneMapping.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGImage.h +409 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGLayer.h +78 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFArray.h +120 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContentStream.h +55 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContext.h +535 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDictionary.h +133 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDocument.h +252 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFMarkedContentItem.h +37 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFObject.h +67 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFOperatorTable.h +51 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFPage.h +101 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFScanner.h +123 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFStream.h +44 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFString.h +52 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFStructureElement.h +87 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPath.h +441 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPattern.h +89 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGRenderingBufferProvider.h +49 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGShading.h +124 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGToneMapping.h +85 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h +44 -252
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Modules/module.modulemap +1 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/CFNetworkErrors.h +257 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes +0 -6
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +356 -61
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/NSURLSession+Network.h +32 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/Network.h +51 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/advertise_descriptor.h +193 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/browse_descriptor.h +163 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/browse_result.h +207 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/browser.h +285 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/connection.h +714 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/connection_group.h +629 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/connection_report.h +932 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/content_context.h +229 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/endpoint.h +390 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/error.h +135 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/ethernet_channel.h +349 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/framer_options.h +1187 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/group_descriptor.h +184 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/interface.h +150 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/ip_options.h +351 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/listener.h +438 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/nw_object.h +200 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/parameters.h +1205 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/path.h +392 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/path_monitor.h +216 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/privacy_context.h +188 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/protocol_options.h +126 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/proxy_config.h +357 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/quic_options.h +889 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/resolver_config.h +94 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/tcp_options.h +459 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/tls_options.h +115 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/txt_record.h +432 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/udp_options.h +112 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/ws_options.h +743 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Modules/module.modulemap +9 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h +395 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CABase.h +132 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CADisplayLink.h +107 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEmitterCell.h +153 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEmitterLayer.h +151 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAFrameRateRange.h +40 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAGradientLayer.h +78 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h +1078 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTiming.h +97 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTimingFunction.h +67 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAReplicatorLayer.h +65 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAScrollLayer.h +64 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAShapeLayer.h +135 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATextLayer.h +99 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATiledLayer.h +67 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATransaction.h +124 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATransform3D.h +138 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATransformLayer.h +40 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAValueFunction.h +78 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h +19 -38
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecureTransport.h +1757 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSAttributedString.h +19 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSParagraphStyle.h +28 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityConstants.h +114 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h +16 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarAppearance.h +47 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDataDetectors.h +20 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDatePicker.h +13 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h +16 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h +84 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizer.h +119 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizerSubclass.h +66 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHoverGestureRecognizer.h +45 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +161 -37
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPickerView.h +76 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBar.h +8 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBarAppearance.h +78 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextInputTraits.h +29 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITouch.h +104 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITraitCollection.h +19 -0
- package/sdk/ios/usr/include/dns_sd.h +3616 -0
- package/sdk/ios/usr/include/dnssd.modulemap +4 -0
- package/sdk/ios/usr/include/module.modulemap +1 -0
- package/sdk/ios/usr/include/sys/socketvar.h +191 -0
- package/sdk/ios/usr/include/sys/vsock.h +84 -0
- package/sdk/native-hashes.json +1 -1
- package/skills/contrast/SKILL.md +6 -5
- package/skills/peach-debug/SKILL.md +68 -264
- package/skills/peach-debug/references/accessibility.md +37 -73
- package/skills/peach-debug/references/commands.md +2 -2
- package/skills/peach-debug/references/events.md +74 -0
- package/skills/peach-perf/SKILL.md +64 -401
- package/skills/peach-perf/references/presentation.md +46 -0
- package/skills/peach-perf/references/profiling.md +93 -0
- package/skills/peach-perf/references/render-counters.md +57 -0
- package/skills/peach-setup/SKILL.md +66 -216
- package/skills/peach-setup/references/native-config.md +35 -0
- package/skills/peach-setup/references/reporting.md +28 -0
- package/skills/peach-test/SKILL.md +68 -284
- package/skills/peach-test/references/detox.md +69 -0
- package/skills/peach-test/references/maestro.md +95 -0
- package/skills/peach-visual/SKILL.md +53 -105
- package/src/appPackageContract.ts +12 -1
- package/src/assetCatalogContract.ts +8 -1
- package/src/bridge-contract.ts +6 -0
- package/src/bundle-channel.mjs +133 -59
- package/src/cli-runtime.ts +8 -9
- package/src/configured-bundle-producer.ts +10 -0
- package/src/device-catalog.ts +68 -4
- package/src/expo-discovery-cache.ts +3 -0
- package/src/expo-native-workspace.ts +81 -17
- package/src/expo-swift-host.ts +57 -104
- package/src/expo-widget-assets.ts +76 -0
- package/src/expoSwiftContract.ts +13 -1
- package/src/host/websocket-proxy.ts +7 -2
- package/src/native-prebuilt.ts +3 -3
- package/src/nitro-adapter.lock.json +263 -263
- package/src/nitro-adapter.ts +69 -7
- package/src/nitro-bundle.ts +52 -24
- package/src/nitro-compile.ts +6 -1
- package/src/nitro-source.ts +82 -4
- package/src/nitro-superset.lock.json +103 -0
- package/src/nitro-superset.ts +137 -0
- package/src/nitroContract.ts +5 -1
- package/src/react-bridge-importers.ts +1 -0
- package/src/settingsContract.ts +26 -1
- package/src/swift-compile.ts +267 -68
- package/src/swift-compiler-digest.ts +2 -0
- package/src/swift-coverage/xcode-packages.ts +61 -1
- package/src/swift-coverage/xcode.ts +10 -12
- package/src/swift-cxx-reachable.ts +1 -1
- package/src/swift-distribution.lock.json +15 -13
- package/src/swift-distribution.ts +57 -26
- package/src/swift-host.ts +48 -35
- package/src/swift-link-roots.ts +45 -18
- package/src/swift-objc-compile.ts +78 -2
- package/src/swift-objc-standin.ts +3 -0
- package/src/swift-shared-sdk.ts +85 -1
- package/src/swift-standins.ts +233 -11
- package/src/swift-submit.ts +13 -1
- package/src/swift-toolchain.ts +82 -7
- package/src/swift-wasm-prune.ts +1629 -0
- package/src/turbo-bundle.ts +11 -10
- package/src/turbo-runtime.lock.json +16 -16
- package/src/vite-plugin-one.ts +12 -1
- package/src/vite-plugin.ts +82 -23
- package/src/wasm-optimize.ts +34 -0
- package/src/worker-system-chunks.ts +3 -3
- package/src/xcode-project.ts +52 -0
- package/src/xcode-target-members.ts +12 -1
|
@@ -0,0 +1,19 @@
|
|
|
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__((flag_enum, enum_extensibility(open))) NSUnderlineStyle : intptr_t {
|
|
9
|
+
NSUnderlineStylePatternSolid = 0,
|
|
10
|
+
NSUnderlineStyleNone = 0,
|
|
11
|
+
NSUnderlineStyleByWord __attribute__((swift_name("byWord"))) = 32768,
|
|
12
|
+
NSUnderlineStyleDouble __attribute__((swift_name("double"))) = 9,
|
|
13
|
+
NSUnderlineStylePatternDash __attribute__((swift_name("patternDash"))) = 512,
|
|
14
|
+
NSUnderlineStylePatternDashDot __attribute__((swift_name("patternDashDot"))) = 768,
|
|
15
|
+
NSUnderlineStylePatternDashDotDot __attribute__((swift_name("patternDashDotDot"))) = 1024,
|
|
16
|
+
NSUnderlineStylePatternDot __attribute__((swift_name("patternDot"))) = 256,
|
|
17
|
+
NSUnderlineStyleSingle __attribute__((swift_name("single"))) = 1,
|
|
18
|
+
NSUnderlineStyleThick __attribute__((swift_name("thick"))) = 2,
|
|
19
|
+
} NSUnderlineStyle;
|
|
@@ -0,0 +1,28 @@
|
|
|
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))) NSLineBreakMode : intptr_t {
|
|
9
|
+
NSLineBreakByCharWrapping __attribute__((swift_name("NSLineBreakMode.byCharWrapping"))) = 1,
|
|
10
|
+
NSLineBreakByClipping __attribute__((swift_name("NSLineBreakMode.byClipping"))) = 2,
|
|
11
|
+
NSLineBreakByTruncatingHead __attribute__((swift_name("NSLineBreakMode.byTruncatingHead"))) = 3,
|
|
12
|
+
NSLineBreakByTruncatingMiddle __attribute__((swift_name("NSLineBreakMode.byTruncatingMiddle"))) = 5,
|
|
13
|
+
NSLineBreakByTruncatingTail __attribute__((swift_name("NSLineBreakMode.byTruncatingTail"))) = 4,
|
|
14
|
+
NSLineBreakByWordWrapping __attribute__((swift_name("NSLineBreakMode.byWordWrapping"))) = 0,
|
|
15
|
+
} NSLineBreakMode;
|
|
16
|
+
|
|
17
|
+
typedef enum __attribute__((enum_extensibility(open))) NSWritingDirection : intptr_t {
|
|
18
|
+
NSWritingDirectionLeftToRight __attribute__((swift_name("NSWritingDirection.leftToRight"))) = 0,
|
|
19
|
+
NSWritingDirectionNatural __attribute__((swift_name("NSWritingDirection.natural"))) = -1,
|
|
20
|
+
NSWritingDirectionRightToLeft __attribute__((swift_name("NSWritingDirection.rightToLeft"))) = 1,
|
|
21
|
+
} NSWritingDirection;
|
|
22
|
+
|
|
23
|
+
typedef enum __attribute__((flag_enum, enum_extensibility(open))) NSLineBreakStrategy : uintptr_t {
|
|
24
|
+
NSLineBreakStrategyNone = 0,
|
|
25
|
+
NSLineBreakStrategyHangulWordPriority __attribute__((swift_name("hangulWordPriority"))) = 2,
|
|
26
|
+
NSLineBreakStrategyPushOut __attribute__((swift_name("pushOut"))) = 1,
|
|
27
|
+
NSLineBreakStrategyStandard __attribute__((swift_name("standard"))) = 65535,
|
|
28
|
+
} NSLineBreakStrategy;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
#import <Foundation/Foundation.h>
|
|
3
|
+
//
|
|
4
|
+
// UIAccessibilityConstants.h
|
|
5
|
+
// UIKit
|
|
6
|
+
//
|
|
7
|
+
// Copyright (c) 2009-2018 Apple Inc. All rights reserved.
|
|
8
|
+
//
|
|
9
|
+
|
|
10
|
+
NS_HEADER_AUDIT_BEGIN(nullability, sendability)
|
|
11
|
+
|
|
12
|
+
/*
|
|
13
|
+
Accessibility Traits
|
|
14
|
+
|
|
15
|
+
Traits are combined in a mask to help assistive applications understand
|
|
16
|
+
the meaning and intended use of a particular accessibility element.
|
|
17
|
+
|
|
18
|
+
UIKit applies appropriate traits to all standard controls, however the
|
|
19
|
+
following traits may be used in conjunction with custom controls.
|
|
20
|
+
|
|
21
|
+
When setting accessibility traits, combine custom traits with
|
|
22
|
+
[super accessibilityTraits]. An incorrect combination of custom traits
|
|
23
|
+
will cause accessibility clients to incorrectly interpret the element.
|
|
24
|
+
Use common sense when combining traits.
|
|
25
|
+
*/
|
|
26
|
+
typedef uint64_t UIAccessibilityTraits NS_TYPED_ENUM API_AVAILABLE(watchos(2.0));
|
|
27
|
+
|
|
28
|
+
// Used when the element has no traits.
|
|
29
|
+
UIKIT_EXTERN const UIAccessibilityTraits UIAccessibilityTraitNone API_AVAILABLE(watchos(2.0)) NS_SWIFT_NONISOLATED;
|
|
30
|
+
|
|
31
|
+
// Used when the element should be treated as a button.
|
|
32
|
+
UIKIT_EXTERN const UIAccessibilityTraits UIAccessibilityTraitButton API_AVAILABLE(watchos(2.0)) NS_SWIFT_NONISOLATED;
|
|
33
|
+
|
|
34
|
+
// Used when the element should be treated as a link.
|
|
35
|
+
UIKIT_EXTERN const UIAccessibilityTraits UIAccessibilityTraitLink API_AVAILABLE(watchos(2.0)) NS_SWIFT_NONISOLATED;
|
|
36
|
+
|
|
37
|
+
// Used when an element acts as a header for a content section (e.g. the title of a navigation bar).
|
|
38
|
+
UIKIT_EXTERN const UIAccessibilityTraits UIAccessibilityTraitHeader API_AVAILABLE(ios(6.0), watchos(2.0)) NS_SWIFT_NONISOLATED;
|
|
39
|
+
|
|
40
|
+
// Used when the text field element should also be treated as a search field.
|
|
41
|
+
UIKIT_EXTERN const UIAccessibilityTraits UIAccessibilityTraitSearchField API_AVAILABLE(watchos(2.0)) NS_SWIFT_NONISOLATED;
|
|
42
|
+
|
|
43
|
+
// Used when the element should be treated as an image. Can be combined with button or link, for example.
|
|
44
|
+
UIKIT_EXTERN const UIAccessibilityTraits UIAccessibilityTraitImage API_AVAILABLE(watchos(2.0)) NS_SWIFT_NONISOLATED;
|
|
45
|
+
|
|
46
|
+
/*
|
|
47
|
+
Used when the element is selected.
|
|
48
|
+
For example, a selected row in a table or a selected button within a segmented control.
|
|
49
|
+
*/
|
|
50
|
+
UIKIT_EXTERN const UIAccessibilityTraits UIAccessibilityTraitSelected API_AVAILABLE(watchos(2.0)) NS_SWIFT_NONISOLATED;
|
|
51
|
+
|
|
52
|
+
// Used when the element plays its own sound when activated.
|
|
53
|
+
UIKIT_EXTERN const UIAccessibilityTraits UIAccessibilityTraitPlaysSound API_AVAILABLE(watchos(2.0)) NS_SWIFT_NONISOLATED;
|
|
54
|
+
|
|
55
|
+
// Used when the element acts as a keyboard key.
|
|
56
|
+
UIKIT_EXTERN const UIAccessibilityTraits UIAccessibilityTraitKeyboardKey API_AVAILABLE(watchos(2.0)) NS_SWIFT_NONISOLATED;
|
|
57
|
+
|
|
58
|
+
// Used when the element should be treated as static text that cannot change.
|
|
59
|
+
UIKIT_EXTERN const UIAccessibilityTraits UIAccessibilityTraitStaticText API_AVAILABLE(watchos(2.0)) NS_SWIFT_NONISOLATED;
|
|
60
|
+
|
|
61
|
+
/*
|
|
62
|
+
Used when an element can be used to provide a quick summary of current
|
|
63
|
+
conditions in the app when the app first launches. For example, when Weather
|
|
64
|
+
first launches, the element with today's weather conditions is marked with
|
|
65
|
+
this trait.
|
|
66
|
+
*/
|
|
67
|
+
UIKIT_EXTERN const UIAccessibilityTraits UIAccessibilityTraitSummaryElement API_AVAILABLE(watchos(2.0)) NS_SWIFT_NONISOLATED;
|
|
68
|
+
|
|
69
|
+
// Used when the control is not enabled and does not respond to user input.
|
|
70
|
+
UIKIT_EXTERN const UIAccessibilityTraits UIAccessibilityTraitNotEnabled API_AVAILABLE(watchos(2.0)) NS_SWIFT_NONISOLATED;
|
|
71
|
+
|
|
72
|
+
/*
|
|
73
|
+
Used when the element frequently updates its label or value, but too often to send notifications.
|
|
74
|
+
Allows an accessibility client to poll for changes. A stopwatch would be an example.
|
|
75
|
+
*/
|
|
76
|
+
UIKIT_EXTERN const UIAccessibilityTraits UIAccessibilityTraitUpdatesFrequently API_AVAILABLE(watchos(2.0)) NS_SWIFT_NONISOLATED;
|
|
77
|
+
|
|
78
|
+
/*
|
|
79
|
+
Used when activating an element starts a media session (e.g. playing a movie, recording audio)
|
|
80
|
+
that should not be interrupted by output from an assistive technology, like VoiceOver.
|
|
81
|
+
*/
|
|
82
|
+
UIKIT_EXTERN const UIAccessibilityTraits UIAccessibilityTraitStartsMediaSession API_AVAILABLE(ios(4.0), watchos(2.0)) NS_SWIFT_NONISOLATED;
|
|
83
|
+
|
|
84
|
+
/*
|
|
85
|
+
Used when an element can be "adjusted" (e.g. a slider). The element must also
|
|
86
|
+
implement accessibilityIncrement and accessibilityDecrement.
|
|
87
|
+
*/
|
|
88
|
+
UIKIT_EXTERN const UIAccessibilityTraits UIAccessibilityTraitAdjustable API_AVAILABLE(ios(4.0), watchos(2.0)) NS_SWIFT_NONISOLATED;
|
|
89
|
+
|
|
90
|
+
// Used when an element allows direct touch interaction for VoiceOver users (for example, a view representing a piano keyboard).
|
|
91
|
+
UIKIT_EXTERN const UIAccessibilityTraits UIAccessibilityTraitAllowsDirectInteraction API_AVAILABLE(ios(5.0), watchos(2.0)) NS_SWIFT_NONISOLATED;
|
|
92
|
+
|
|
93
|
+
/*
|
|
94
|
+
Informs VoiceOver that it should scroll to the next page when it finishes reading the contents of the
|
|
95
|
+
element. VoiceOver will scroll by calling accessibilityScroll: with UIAccessibilityScrollDirectionNext and will
|
|
96
|
+
stop scrolling when it detects the content has not changed.
|
|
97
|
+
*/
|
|
98
|
+
UIKIT_EXTERN const UIAccessibilityTraits UIAccessibilityTraitCausesPageTurn API_AVAILABLE(ios(5.0), watchos(2.0)) NS_SWIFT_NONISOLATED;
|
|
99
|
+
|
|
100
|
+
/*
|
|
101
|
+
Used when a view or accessibility container represents an ordered list of tabs.
|
|
102
|
+
The object with this trait should return NO for isAccessibilityElement.
|
|
103
|
+
*/
|
|
104
|
+
UIKIT_EXTERN const UIAccessibilityTraits UIAccessibilityTraitTabBar API_AVAILABLE(ios(10.0), watchos(3.0)) NS_SWIFT_NONISOLATED;
|
|
105
|
+
|
|
106
|
+
// Used when the element should be treated as a toggle.
|
|
107
|
+
UIKIT_EXTERN const UIAccessibilityTraits UIAccessibilityTraitToggleButton API_AVAILABLE(ios(17.0), watchos(10.0)) NS_SWIFT_NONISOLATED;
|
|
108
|
+
|
|
109
|
+
/*
|
|
110
|
+
Used when the element has zoom functionality.
|
|
111
|
+
*/
|
|
112
|
+
UIKIT_EXTERN const UIAccessibilityTraits UIAccessibilityTraitSupportsZoom API_AVAILABLE(ios(17.0), watchos(10.0)) NS_SWIFT_NONISOLATED;
|
|
113
|
+
|
|
114
|
+
NS_HEADER_AUDIT_END(nullability, sendability)
|
|
@@ -5,8 +5,24 @@
|
|
|
5
5
|
#include <stdbool.h>
|
|
6
6
|
#include <stdint.h>
|
|
7
7
|
|
|
8
|
+
typedef enum __attribute__((enum_extensibility(open))) UIStatusBarAnimation : intptr_t {
|
|
9
|
+
UIStatusBarAnimationFade __attribute__((swift_name("UIStatusBarAnimation.fade"))) = 1,
|
|
10
|
+
UIStatusBarAnimationNone __attribute__((swift_name("UIStatusBarAnimation.none"))) = 0,
|
|
11
|
+
UIStatusBarAnimationSlide __attribute__((swift_name("UIStatusBarAnimation.slide"))) = 2,
|
|
12
|
+
} UIStatusBarAnimation;
|
|
13
|
+
|
|
8
14
|
typedef enum __attribute__((enum_extensibility(open))) UIStatusBarStyle : intptr_t {
|
|
9
15
|
UIStatusBarStyleDarkContent __attribute__((swift_name("UIStatusBarStyle.darkContent"))) = 3,
|
|
10
16
|
UIStatusBarStyleDefault __attribute__((swift_name("UIStatusBarStyle.default"))) = 0,
|
|
11
17
|
UIStatusBarStyleLightContent __attribute__((swift_name("UIStatusBarStyle.lightContent"))) = 1,
|
|
12
18
|
} UIStatusBarStyle;
|
|
19
|
+
|
|
20
|
+
typedef enum __attribute__((flag_enum, enum_extensibility(open))) UIInterfaceOrientationMask : uintptr_t {
|
|
21
|
+
UIInterfaceOrientationMaskAll __attribute__((swift_name("all"))) = 30,
|
|
22
|
+
UIInterfaceOrientationMaskAllButUpsideDown __attribute__((swift_name("allButUpsideDown"))) = 26,
|
|
23
|
+
UIInterfaceOrientationMaskLandscape __attribute__((swift_name("landscape"))) = 24,
|
|
24
|
+
UIInterfaceOrientationMaskLandscapeLeft __attribute__((swift_name("landscapeLeft"))) = 16,
|
|
25
|
+
UIInterfaceOrientationMaskLandscapeRight __attribute__((swift_name("landscapeRight"))) = 8,
|
|
26
|
+
UIInterfaceOrientationMaskPortrait __attribute__((swift_name("portrait"))) = 2,
|
|
27
|
+
UIInterfaceOrientationMaskPortraitUpsideDown __attribute__((swift_name("portraitUpsideDown"))) = 4,
|
|
28
|
+
} UIInterfaceOrientationMask;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
|
|
3
|
+
#import <Foundation/Foundation.h>
|
|
4
|
+
#import <UIKit/UIView.h>
|
|
5
|
+
|
|
6
|
+
NS_HEADER_AUDIT_BEGIN(nullability, sendability)
|
|
7
|
+
|
|
8
|
+
@class UIColor;
|
|
9
|
+
@class UIImage;
|
|
10
|
+
@class UIBlurEffect;
|
|
11
|
+
|
|
12
|
+
UIKIT_EXTERN API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
|
|
13
|
+
@interface UIBarAppearance : NSObject<NSCopying, NSSecureCoding>
|
|
14
|
+
|
|
15
|
+
- (instancetype)init;
|
|
16
|
+
|
|
17
|
+
- (instancetype)initWithIdiom:(UIUserInterfaceIdiom)idiom NS_DESIGNATED_INITIALIZER;
|
|
18
|
+
|
|
19
|
+
@property (nonatomic, readonly, assign) UIUserInterfaceIdiom idiom;
|
|
20
|
+
|
|
21
|
+
- (instancetype)initWithBarAppearance:(UIBarAppearance *)barAppearance NS_DESIGNATED_INITIALIZER;
|
|
22
|
+
|
|
23
|
+
- (instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
|
|
24
|
+
|
|
25
|
+
- (instancetype)copy;
|
|
26
|
+
|
|
27
|
+
- (void)configureWithDefaultBackground;
|
|
28
|
+
|
|
29
|
+
- (void)configureWithOpaqueBackground;
|
|
30
|
+
|
|
31
|
+
- (void)configureWithTransparentBackground;
|
|
32
|
+
|
|
33
|
+
@property (nonatomic, readwrite, copy, nullable) UIBlurEffect *backgroundEffect;
|
|
34
|
+
@property (nonatomic, readwrite, copy, nullable) UIColor *backgroundColor;
|
|
35
|
+
@property (nonatomic, readwrite, strong, nullable) UIImage *backgroundImage;
|
|
36
|
+
@property (nonatomic, readwrite, assign) UIViewContentMode backgroundImageContentMode;
|
|
37
|
+
|
|
38
|
+
@property (nonatomic, readwrite, copy, nullable) UIColor *shadowColor;
|
|
39
|
+
@property (nonatomic, readwrite, strong, nullable) UIImage *shadowImage;
|
|
40
|
+
|
|
41
|
+
@property (nonatomic, readwrite, assign) UIUserInterfaceStyle overrideUserInterfaceStyle
|
|
42
|
+
API_AVAILABLE(ios(27.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos, tvos);
|
|
43
|
+
|
|
44
|
+
@end
|
|
45
|
+
|
|
46
|
+
NS_HEADER_AUDIT_END(nullability, sendability)
|
|
47
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
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__((flag_enum, enum_extensibility(open))) UIDataDetectorTypes : uintptr_t {
|
|
9
|
+
UIDataDetectorTypeNone = 0,
|
|
10
|
+
UIDataDetectorTypeAddress __attribute__((swift_name("address"))) = 4,
|
|
11
|
+
UIDataDetectorTypeAll __attribute__((swift_name("all"))) = 4294967295,
|
|
12
|
+
UIDataDetectorTypeCalendarEvent __attribute__((swift_name("calendarEvent"))) = 8,
|
|
13
|
+
UIDataDetectorTypeFlightNumber __attribute__((swift_name("flightNumber"))) = 32,
|
|
14
|
+
UIDataDetectorTypeLink __attribute__((swift_name("link"))) = 2,
|
|
15
|
+
UIDataDetectorTypeLookupSuggestion __attribute__((swift_name("lookupSuggestion"))) = 64,
|
|
16
|
+
UIDataDetectorTypeMoney __attribute__((swift_name("money"))) = 128,
|
|
17
|
+
UIDataDetectorTypePhoneNumber __attribute__((swift_name("phoneNumber"))) = 1,
|
|
18
|
+
UIDataDetectorTypePhysicalValue __attribute__((swift_name("physicalValue"))) = 256,
|
|
19
|
+
UIDataDetectorTypeShipmentTrackingNumber __attribute__((swift_name("shipmentTrackingNumber"))) = 16,
|
|
20
|
+
} UIDataDetectorTypes;
|
|
@@ -0,0 +1,13 @@
|
|
|
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))) UIDatePickerStyle : intptr_t {
|
|
9
|
+
UIDatePickerStyleAutomatic __attribute__((swift_name("UIDatePickerStyle.automatic"))) = 0,
|
|
10
|
+
UIDatePickerStyleCompact __attribute__((swift_name("UIDatePickerStyle.compact"))) = 2,
|
|
11
|
+
UIDatePickerStyleInline __attribute__((swift_name("UIDatePickerStyle.inline"))) = 3,
|
|
12
|
+
UIDatePickerStyleWheels __attribute__((swift_name("UIDatePickerStyle.wheels"))) = 1,
|
|
13
|
+
} UIDatePickerStyle;
|
|
@@ -0,0 +1,16 @@
|
|
|
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))) UIDeviceOrientation : intptr_t {
|
|
9
|
+
UIDeviceOrientationFaceDown __attribute__((swift_name("UIDeviceOrientation.faceDown"))) = 6,
|
|
10
|
+
UIDeviceOrientationFaceUp __attribute__((swift_name("UIDeviceOrientation.faceUp"))) = 5,
|
|
11
|
+
UIDeviceOrientationLandscapeLeft __attribute__((swift_name("UIDeviceOrientation.landscapeLeft"))) = 3,
|
|
12
|
+
UIDeviceOrientationLandscapeRight __attribute__((swift_name("UIDeviceOrientation.landscapeRight"))) = 4,
|
|
13
|
+
UIDeviceOrientationPortrait __attribute__((swift_name("UIDeviceOrientation.portrait"))) = 1,
|
|
14
|
+
UIDeviceOrientationPortraitUpsideDown __attribute__((swift_name("UIDeviceOrientation.portraitUpsideDown"))) = 2,
|
|
15
|
+
UIDeviceOrientationUnknown __attribute__((swift_name("UIDeviceOrientation.unknown"))) = 0,
|
|
16
|
+
} UIDeviceOrientation;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
#import <Foundation/Foundation.h>
|
|
3
|
+
#import <CoreGraphics/CoreGraphics.h>
|
|
4
|
+
//
|
|
5
|
+
// UIEvent.h
|
|
6
|
+
// UIKit
|
|
7
|
+
//
|
|
8
|
+
// Copyright (c) 2005-2018 Apple Inc. All rights reserved.
|
|
9
|
+
//
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
NS_HEADER_AUDIT_BEGIN(nullability, sendability)
|
|
13
|
+
|
|
14
|
+
@class UIWindow, UIView, UIGestureRecognizer, UITouch;
|
|
15
|
+
|
|
16
|
+
typedef NS_ENUM(NSInteger, UIEventType) {
|
|
17
|
+
UIEventTypeTouches,
|
|
18
|
+
UIEventTypeMotion,
|
|
19
|
+
UIEventTypeRemoteControl,
|
|
20
|
+
UIEventTypePresses API_AVAILABLE(ios(9.0)),
|
|
21
|
+
UIEventTypeScroll API_AVAILABLE(ios(13.4), tvos(13.4)) API_UNAVAILABLE(watchos) = 10,
|
|
22
|
+
UIEventTypeHover API_AVAILABLE(ios(13.4), tvos(13.4)) API_UNAVAILABLE(watchos) = 11,
|
|
23
|
+
UIEventTypeTransform API_AVAILABLE(ios(13.4), tvos(13.4)) API_UNAVAILABLE(watchos) = 14,
|
|
24
|
+
} API_UNAVAILABLE(watchos);
|
|
25
|
+
|
|
26
|
+
typedef NS_ENUM(NSInteger, UIEventSubtype) {
|
|
27
|
+
// available in iPhone OS 3.0
|
|
28
|
+
UIEventSubtypeNone = 0,
|
|
29
|
+
|
|
30
|
+
// for UIEventTypeMotion, available in iPhone OS 3.0
|
|
31
|
+
UIEventSubtypeMotionShake = 1,
|
|
32
|
+
|
|
33
|
+
// for UIEventTypeRemoteControl, available in iOS 4.0
|
|
34
|
+
UIEventSubtypeRemoteControlPlay = 100,
|
|
35
|
+
UIEventSubtypeRemoteControlPause = 101,
|
|
36
|
+
UIEventSubtypeRemoteControlStop = 102,
|
|
37
|
+
UIEventSubtypeRemoteControlTogglePlayPause = 103,
|
|
38
|
+
UIEventSubtypeRemoteControlNextTrack = 104,
|
|
39
|
+
UIEventSubtypeRemoteControlPreviousTrack = 105,
|
|
40
|
+
UIEventSubtypeRemoteControlBeginSeekingBackward = 106,
|
|
41
|
+
UIEventSubtypeRemoteControlEndSeekingBackward = 107,
|
|
42
|
+
UIEventSubtypeRemoteControlBeginSeekingForward = 108,
|
|
43
|
+
UIEventSubtypeRemoteControlEndSeekingForward = 109,
|
|
44
|
+
} API_UNAVAILABLE(watchos);
|
|
45
|
+
|
|
46
|
+
/// Set of buttons pressed for the current event
|
|
47
|
+
/// Raw format of: 1 << (buttonNumber - 1)
|
|
48
|
+
/// UIEventButtonMaskPrimary = 1 << 0
|
|
49
|
+
typedef NS_OPTIONS(NSInteger, UIEventButtonMask) {
|
|
50
|
+
UIEventButtonMaskPrimary = 1 << 0,
|
|
51
|
+
UIEventButtonMaskSecondary = 1 << 1
|
|
52
|
+
} NS_SWIFT_NAME(UIEvent.ButtonMask) API_AVAILABLE(ios(13.4)) API_UNAVAILABLE(tvos, watchos);
|
|
53
|
+
|
|
54
|
+
/// Convenience initializer for a button mask where `buttonNumber` is a one-based index of the button on the input device
|
|
55
|
+
/// .button(1) == .primary
|
|
56
|
+
/// .button(2) == .secondary
|
|
57
|
+
UIKIT_EXTERN UIEventButtonMask UIEventButtonMaskForButtonNumber(NSInteger buttonNumber) NS_SWIFT_NAME(UIEventButtonMask.button(_:)) API_AVAILABLE(ios(13.4)) API_UNAVAILABLE(tvos, watchos);
|
|
58
|
+
|
|
59
|
+
UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
|
|
60
|
+
@interface UIEvent : NSObject
|
|
61
|
+
|
|
62
|
+
@property(nonatomic,readonly) UIEventType type API_AVAILABLE(ios(3.0));
|
|
63
|
+
@property(nonatomic,readonly) UIEventSubtype subtype API_AVAILABLE(ios(3.0));
|
|
64
|
+
|
|
65
|
+
@property(nonatomic,readonly) NSTimeInterval timestamp;
|
|
66
|
+
|
|
67
|
+
@property (nonatomic, readonly) UIKeyModifierFlags modifierFlags API_AVAILABLE(ios(13.4), tvos(13.4)) API_UNAVAILABLE(watchos);
|
|
68
|
+
@property (nonatomic, readonly) UIEventButtonMask buttonMask API_AVAILABLE(ios(13.4)) API_UNAVAILABLE(tvos, watchos);
|
|
69
|
+
|
|
70
|
+
@property(nonatomic, readonly, nullable) NSSet <UITouch *> *allTouches;
|
|
71
|
+
- (nullable NSSet <UITouch *> *)touchesForWindow:(UIWindow *)window;
|
|
72
|
+
- (nullable NSSet <UITouch *> *)touchesForView:(UIView *)view;
|
|
73
|
+
- (nullable NSSet <UITouch *> *)touchesForGestureRecognizer:(UIGestureRecognizer *)gesture API_AVAILABLE(ios(3.2));
|
|
74
|
+
|
|
75
|
+
// An array of auxiliary UITouch’s for the touch events that did not get delivered for a given main touch. This also includes an auxiliary version of the main touch itself.
|
|
76
|
+
- (nullable NSArray <UITouch *> *)coalescedTouchesForTouch:(UITouch *)touch API_AVAILABLE(ios(9.0));
|
|
77
|
+
|
|
78
|
+
// An array of auxiliary UITouch’s for touch events that are predicted to occur for a given main touch. These predictions may not exactly match the real behavior of the touch as it moves, so they should be interpreted as an estimate.
|
|
79
|
+
- (nullable NSArray <UITouch *> *)predictedTouchesForTouch:(UITouch *)touch API_AVAILABLE(ios(9.0));
|
|
80
|
+
|
|
81
|
+
@end
|
|
82
|
+
|
|
83
|
+
NS_HEADER_AUDIT_END(nullability, sendability)
|
|
84
|
+
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
#import <Foundation/Foundation.h>
|
|
3
|
+
#import <CoreGraphics/CoreGraphics.h>
|
|
4
|
+
//
|
|
5
|
+
// UIGestureRecognizer.h
|
|
6
|
+
// UIKit
|
|
7
|
+
//
|
|
8
|
+
// Copyright (c) 2008-2018 Apple Inc. All rights reserved.
|
|
9
|
+
//
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
NS_HEADER_AUDIT_BEGIN(nullability, sendability)
|
|
13
|
+
|
|
14
|
+
@protocol UIGestureRecognizerDelegate;
|
|
15
|
+
@class UIView, UIEvent, UITouch, UIPress;
|
|
16
|
+
|
|
17
|
+
typedef NS_ENUM(NSInteger, UIGestureRecognizerState) {
|
|
18
|
+
UIGestureRecognizerStatePossible, // the recognizer has not yet recognized its gesture, but may be evaluating touch events. this is the default state
|
|
19
|
+
|
|
20
|
+
UIGestureRecognizerStateBegan, // the recognizer has received touches recognized as the gesture. the action method will be called at the next turn of the run loop
|
|
21
|
+
UIGestureRecognizerStateChanged, // the recognizer has received touches recognized as a change to the gesture. the action method will be called at the next turn of the run loop
|
|
22
|
+
UIGestureRecognizerStateEnded, // the recognizer has received touches recognized as the end of the gesture. the action method will be called at the next turn of the run loop and the recognizer will be reset to UIGestureRecognizerStatePossible
|
|
23
|
+
UIGestureRecognizerStateCancelled, // the recognizer has received touches resulting in the cancellation of the gesture. the action method will be called at the next turn of the run loop. the recognizer will be reset to UIGestureRecognizerStatePossible
|
|
24
|
+
|
|
25
|
+
UIGestureRecognizerStateFailed, // the recognizer has received a touch sequence that can not be recognized as the gesture. the action method will not be called and the recognizer will be reset to UIGestureRecognizerStatePossible
|
|
26
|
+
|
|
27
|
+
// Discrete Gestures – gesture recognizers that recognize a discrete event but do not report changes (for example, a tap) do not transition through the Began and Changed states and can not fail or be cancelled
|
|
28
|
+
UIGestureRecognizerStateRecognized = UIGestureRecognizerStateEnded // the recognizer has received touches recognized as the gesture. the action method will be called at the next turn of the run loop and the recognizer will be reset to UIGestureRecognizerStatePossible
|
|
29
|
+
} API_UNAVAILABLE(watchos);
|
|
30
|
+
|
|
31
|
+
UIKIT_EXTERN API_AVAILABLE(ios(3.2)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
|
|
32
|
+
@interface UIGestureRecognizer : NSObject
|
|
33
|
+
|
|
34
|
+
// Valid action method signatures:
|
|
35
|
+
// -(void)handleGesture;
|
|
36
|
+
// -(void)handleGesture:(UIGestureRecognizer*)gestureRecognizer;
|
|
37
|
+
- (instancetype)initWithTarget:(nullable id)target action:(nullable SEL)action NS_DESIGNATED_INITIALIZER; // designated initializer
|
|
38
|
+
|
|
39
|
+
- (instancetype)init;
|
|
40
|
+
- (nullable instancetype)initWithCoder:(NSCoder *)coder;
|
|
41
|
+
|
|
42
|
+
- (void)addTarget:(id)target action:(SEL)action; // add a target/action pair. you can call this multiple times to specify multiple target/actions
|
|
43
|
+
- (void)removeTarget:(nullable id)target action:(nullable SEL)action; // remove the specified target/action pair. passing nil for target matches all targets, and the same for actions
|
|
44
|
+
|
|
45
|
+
@property(nonatomic,readonly) UIGestureRecognizerState state; // the current state of the gesture recognizer
|
|
46
|
+
|
|
47
|
+
@property(nullable,nonatomic,weak) id <UIGestureRecognizerDelegate> delegate; // the gesture recognizer's delegate
|
|
48
|
+
|
|
49
|
+
@property(nonatomic, getter=isEnabled) BOOL enabled; // default is YES. disabled gesture recognizers will not receive touches. when changed to NO the gesture recognizer will be cancelled if it's currently recognizing a gesture
|
|
50
|
+
|
|
51
|
+
// a UIGestureRecognizer receives touches hit-tested to its view and any of that view's subviews
|
|
52
|
+
@property(nullable, nonatomic, readonly) UIView *view; // the view the gesture is attached to. set by adding the recognizer to a UIView using the addGestureRecognizer: method
|
|
53
|
+
|
|
54
|
+
@property(nonatomic) BOOL cancelsTouchesInView; // default is YES. causes touchesCancelled:withEvent: or pressesCancelled:withEvent: to be sent to the view for all touches or presses recognized as part of this gesture immediately before the action method is called.
|
|
55
|
+
@property(nonatomic) BOOL delaysTouchesBegan; // default is NO. causes all touch or press events to be delivered to the target view only after this gesture has failed recognition. set to YES to prevent views from processing any touches or presses that may be recognized as part of this gesture
|
|
56
|
+
@property(nonatomic) BOOL delaysTouchesEnded; // default is YES. causes touchesEnded or pressesEnded events to be delivered to the target view only after this gesture has failed recognition. this ensures that a touch or press that is part of the gesture can be cancelled if the gesture is recognized
|
|
57
|
+
|
|
58
|
+
@property(nonatomic, copy) NSArray<NSNumber *> *allowedTouchTypes API_AVAILABLE(ios(9.0)); // Array of UITouchTypes as NSNumbers. The default value is platform dependent.
|
|
59
|
+
@property(nonatomic, copy) NSArray<NSNumber *> *allowedPressTypes API_AVAILABLE(ios(9.0)); // Array of UIPressTypes as NSNumbers. The default value is platform dependent.
|
|
60
|
+
|
|
61
|
+
// Indicates whether the gesture recognizer will consider touches of different touch types simultaneously.
|
|
62
|
+
// If NO, it receives all touches that match its allowedTouchTypes.
|
|
63
|
+
// If YES, once it receives a touch of a certain type, it will ignore new touches of other types, until it is reset to UIGestureRecognizerStatePossible.
|
|
64
|
+
@property (nonatomic) BOOL requiresExclusiveTouchType API_AVAILABLE(ios(9.2)) API_UNAVAILABLE(watchos); // defaults to YES
|
|
65
|
+
|
|
66
|
+
// create a relationship with another gesture recognizer that will prevent this gesture's actions from being called until otherGestureRecognizer transitions to UIGestureRecognizerStateFailed
|
|
67
|
+
// if otherGestureRecognizer transitions to UIGestureRecognizerStateRecognized or UIGestureRecognizerStateBegan then this recognizer will instead transition to UIGestureRecognizerStateFailed
|
|
68
|
+
// example usage: a single tap may require a double tap to fail
|
|
69
|
+
- (void)requireGestureRecognizerToFail:(UIGestureRecognizer *)otherGestureRecognizer;
|
|
70
|
+
|
|
71
|
+
// individual UIGestureRecognizer subclasses may provide subclass-specific location information. see individual subclasses for details
|
|
72
|
+
- (CGPoint)locationInView:(nullable UIView*)view; // a generic single-point location for the gesture. usually the centroid of the touches involved
|
|
73
|
+
|
|
74
|
+
@property(nonatomic, readonly) NSUInteger numberOfTouches; // number of touches involved for which locations can be queried
|
|
75
|
+
- (CGPoint)locationOfTouch:(NSUInteger)touchIndex inView:(nullable UIView*)view; // the location of a particular touch
|
|
76
|
+
|
|
77
|
+
@property (nullable, nonatomic, copy) NSString *name API_AVAILABLE(ios(11.0), tvos(11.0)) API_UNAVAILABLE(watchos); // name for debugging to appear in logging
|
|
78
|
+
|
|
79
|
+
// Values from the last event processed.
|
|
80
|
+
// These values are not considered as requirements for the gesture.
|
|
81
|
+
@property (nonatomic, readonly) UIKeyModifierFlags modifierFlags API_AVAILABLE(ios(13.4)) API_UNAVAILABLE(tvos, watchos);
|
|
82
|
+
@property (nonatomic, readonly) UIEventButtonMask buttonMask API_AVAILABLE(ios(13.4)) API_UNAVAILABLE(tvos, watchos);
|
|
83
|
+
|
|
84
|
+
@end
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
|
|
88
|
+
@protocol UIGestureRecognizerDelegate <NSObject>
|
|
89
|
+
@optional
|
|
90
|
+
// called when a gesture recognizer attempts to transition out of UIGestureRecognizerStatePossible. returning NO causes it to transition to UIGestureRecognizerStateFailed
|
|
91
|
+
- (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer;
|
|
92
|
+
|
|
93
|
+
// called when the recognition of one of gestureRecognizer or otherGestureRecognizer would be blocked by the other
|
|
94
|
+
// return YES to allow both to recognize simultaneously. the default implementation returns NO (by default no two gestures can be recognized simultaneously)
|
|
95
|
+
//
|
|
96
|
+
// note: returning YES is guaranteed to allow simultaneous recognition. returning NO is not guaranteed to prevent simultaneous recognition, as the other gesture's delegate may return YES
|
|
97
|
+
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer;
|
|
98
|
+
|
|
99
|
+
// called once per attempt to recognize, so failure requirements can be determined lazily and may be set up between recognizers across view hierarchies
|
|
100
|
+
// return YES to set up a dynamic failure requirement between gestureRecognizer and otherGestureRecognizer
|
|
101
|
+
//
|
|
102
|
+
// note: returning YES is guaranteed to set up the failure requirement. returning NO does not guarantee that there will not be a failure requirement as the other gesture's counterpart delegate or subclass methods may return YES
|
|
103
|
+
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRequireFailureOfGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer API_AVAILABLE(ios(7.0));
|
|
104
|
+
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldBeRequiredToFailByGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer API_AVAILABLE(ios(7.0));
|
|
105
|
+
|
|
106
|
+
// called before touchesBegan:withEvent: is called on the gesture recognizer for a new touch. return NO to prevent the gesture recognizer from seeing this touch
|
|
107
|
+
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch;
|
|
108
|
+
|
|
109
|
+
// called before pressesBegan:withEvent: is called on the gesture recognizer for a new press. return NO to prevent the gesture recognizer from seeing this press
|
|
110
|
+
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceivePress:(UIPress *)press;
|
|
111
|
+
|
|
112
|
+
// called once before either -gestureRecognizer:shouldReceiveTouch: or -gestureRecognizer:shouldReceivePress:
|
|
113
|
+
// return NO to prevent the gesture recognizer from seeing this event
|
|
114
|
+
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveEvent:(UIEvent *)event API_AVAILABLE(ios(13.4), tvos(13.4)) API_UNAVAILABLE(watchos);
|
|
115
|
+
|
|
116
|
+
@end
|
|
117
|
+
|
|
118
|
+
NS_HEADER_AUDIT_END(nullability, sendability)
|
|
119
|
+
|
package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizerSubclass.h
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
#import <Foundation/Foundation.h>
|
|
3
|
+
#import <CoreGraphics/CoreGraphics.h>
|
|
4
|
+
//
|
|
5
|
+
// UIGestureRecognizerSubclass.h
|
|
6
|
+
// UIKit
|
|
7
|
+
//
|
|
8
|
+
// Copyright (c) 2008-2018 Apple Inc. All rights reserved.
|
|
9
|
+
//
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
NS_HEADER_AUDIT_BEGIN(nullability, sendability)
|
|
13
|
+
|
|
14
|
+
@class UIPressesEvent;
|
|
15
|
+
@class UIPress;
|
|
16
|
+
|
|
17
|
+
// the extensions in this header are to be used only by subclasses of UIGestureRecognizer
|
|
18
|
+
// code that uses UIGestureRecognizers must never call these
|
|
19
|
+
|
|
20
|
+
@interface UIGestureRecognizer (UIGestureRecognizerProtected)
|
|
21
|
+
|
|
22
|
+
// readonly for users of a gesture recognizer. may only be changed by direct subclasses of UIGestureRecognizer
|
|
23
|
+
@property(nonatomic,readwrite) UIGestureRecognizerState state; // the current state of the gesture recognizer. can only be set by subclasses of UIGestureRecognizer, but can be read by consumers
|
|
24
|
+
|
|
25
|
+
- (void)ignoreTouch:(UITouch*)touch forEvent:(UIEvent*)event; // if a touch isn't part of this gesture it can be passed to this method to be ignored. ignored touches won't be cancelled on the view even if cancelsTouchesInView is YES
|
|
26
|
+
|
|
27
|
+
- (void)ignorePress:(UIPress *)button forEvent:(UIPressesEvent *)event API_AVAILABLE(ios(9.0));
|
|
28
|
+
|
|
29
|
+
// the following methods are to be overridden by subclasses of UIGestureRecognizer
|
|
30
|
+
// if you override one you must call super
|
|
31
|
+
|
|
32
|
+
// called automatically by the runtime after the gesture state has been set to UIGestureRecognizerStateEnded
|
|
33
|
+
// any internal state should be reset to prepare for a new attempt to recognize the gesture
|
|
34
|
+
// after this is received all remaining active touches will be ignored (no further updates will be received for touches that had already begun but haven't ended)
|
|
35
|
+
- (void)reset;
|
|
36
|
+
|
|
37
|
+
// same behavior as the equivalent delegate methods, but can be used by subclasses to define class-wide prevention rules
|
|
38
|
+
// for example, a UITapGestureRecognizer never prevents another UITapGestureRecognizer with a higher tap count
|
|
39
|
+
- (BOOL)canPreventGestureRecognizer:(UIGestureRecognizer *)preventedGestureRecognizer;
|
|
40
|
+
- (BOOL)canBePreventedByGestureRecognizer:(UIGestureRecognizer *)preventingGestureRecognizer;
|
|
41
|
+
|
|
42
|
+
// same behavior as the equivalent delegate methods, but can be used by subclasses to define class-wide failure requirements
|
|
43
|
+
- (BOOL)shouldRequireFailureOfGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer API_AVAILABLE(ios(7.0));
|
|
44
|
+
- (BOOL)shouldBeRequiredToFailByGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer API_AVAILABLE(ios(7.0));
|
|
45
|
+
|
|
46
|
+
// same behavior as the equivalent delegate method
|
|
47
|
+
- (BOOL)shouldReceiveEvent:(UIEvent *)event API_AVAILABLE(ios(13.4), tvos(13.4)) API_UNAVAILABLE(watchos);
|
|
48
|
+
|
|
49
|
+
// mirror of the touch-delivery methods on UIResponder
|
|
50
|
+
// UIGestureRecognizers aren't in the responder chain, but observe touches hit-tested to their view and their view's subviews
|
|
51
|
+
// UIGestureRecognizers receive touches before the view to which the touch was hit-tested
|
|
52
|
+
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event;
|
|
53
|
+
- (void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event;
|
|
54
|
+
- (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event;
|
|
55
|
+
- (void)touchesCancelled:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event;
|
|
56
|
+
- (void)touchesEstimatedPropertiesUpdated:(NSSet<UITouch *> *)touches API_AVAILABLE(ios(9.1));
|
|
57
|
+
|
|
58
|
+
- (void)pressesBegan:(NSSet<UIPress *> *)presses withEvent:(UIPressesEvent *)event API_AVAILABLE(ios(9.0));
|
|
59
|
+
- (void)pressesChanged:(NSSet<UIPress *> *)presses withEvent:(UIPressesEvent *)event API_AVAILABLE(ios(9.0));
|
|
60
|
+
- (void)pressesEnded:(NSSet<UIPress *> *)presses withEvent:(UIPressesEvent *)event API_AVAILABLE(ios(9.0));
|
|
61
|
+
- (void)pressesCancelled:(NSSet<UIPress *> *)presses withEvent:(UIPressesEvent *)event API_AVAILABLE(ios(9.0));
|
|
62
|
+
|
|
63
|
+
@end
|
|
64
|
+
|
|
65
|
+
NS_HEADER_AUDIT_END(nullability, sendability)
|
|
66
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
#import <Foundation/Foundation.h>
|
|
3
|
+
#import <CoreGraphics/CoreGraphics.h>
|
|
4
|
+
//
|
|
5
|
+
// UIHoverGestureRecognizer.h
|
|
6
|
+
// UIKit
|
|
7
|
+
//
|
|
8
|
+
// Copyright © 2018 Apple Inc. All rights reserved.
|
|
9
|
+
//
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
// UIHoverGestureRecognizer
|
|
13
|
+
// On macOS or iPadOS, this gesture recognizer will begin recognition when the cursor
|
|
14
|
+
// (while no mouse buttons are pressed) enters its view, changes during movement
|
|
15
|
+
// within the view and ends when the cursor leaves said view.
|
|
16
|
+
// Note: While buttons are pressed any currently active hover gesture recognizers
|
|
17
|
+
// are effectively paused (letting other gesture recognizers work) until all
|
|
18
|
+
// mouse buttons have been released.
|
|
19
|
+
//
|
|
20
|
+
// On iOS, this gesture recognizer doesn't recognize anything and is effectively
|
|
21
|
+
// a no-op.
|
|
22
|
+
UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos, tvos) @interface UIHoverGestureRecognizer : UIGestureRecognizer
|
|
23
|
+
|
|
24
|
+
/// The normalized distance from the screen of the hovering device. This value will be 1 at the maximum distance
|
|
25
|
+
/// from the screen and will approach 0 as the device gets closer to the screen. Will always return 0 for devices that
|
|
26
|
+
/// don't support z offset.
|
|
27
|
+
@property (nonatomic, readonly) CGFloat zOffset API_AVAILABLE(ios(16.1));
|
|
28
|
+
|
|
29
|
+
/// The azimuth angle of the current device in the specified view, or the gesture recognizer's window if nil. 0 is
|
|
30
|
+
/// returned for devices that don't support azimuth.
|
|
31
|
+
- (CGFloat)azimuthAngleInView:(nullable UIView *)view API_AVAILABLE(ios(16.4));
|
|
32
|
+
|
|
33
|
+
/// The azimuth unit vector of the current device in the specified view, or the gesture recognizer's window if nil.
|
|
34
|
+
/// An empty vector is returned for devices that don't support azimuth.
|
|
35
|
+
- (CGVector)azimuthUnitVectorInView:(nullable UIView *)view API_AVAILABLE(ios(16.4));
|
|
36
|
+
|
|
37
|
+
/// The altitude angle of the current device. 0 is returned for devices that don't support altitude.
|
|
38
|
+
@property (nonatomic, readonly) CGFloat altitudeAngle API_AVAILABLE(ios(16.4));
|
|
39
|
+
|
|
40
|
+
// Roll angle in radians. Devices that do not support roll angle will always return 0. The roll angle
|
|
41
|
+
// for the Pencil Pro is relative to the angle it has when the pencil becomes active/wakes up.
|
|
42
|
+
@property(nonatomic, readonly) CGFloat rollAngle API_AVAILABLE(ios(17.5)) API_UNAVAILABLE(watchos, tvos);
|
|
43
|
+
|
|
44
|
+
@end
|
|
45
|
+
|