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,153 @@
|
|
|
1
|
+
/* CoreAnimation - CAEmitterCell.h
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2007-2026, Apple Inc.
|
|
4
|
+
All rights reserved. */
|
|
5
|
+
|
|
6
|
+
#ifdef __OBJC__
|
|
7
|
+
|
|
8
|
+
#import <QuartzCore/CALayer.h>
|
|
9
|
+
|
|
10
|
+
NS_HEADER_AUDIT_BEGIN(nullability, sendability)
|
|
11
|
+
|
|
12
|
+
API_AVAILABLE(macos(10.6), ios(5.0), tvos(9.0)) API_UNAVAILABLE(watchos)
|
|
13
|
+
@interface CAEmitterCell : NSObject <NSSecureCoding, CAMediaTiming>
|
|
14
|
+
{
|
|
15
|
+
@private
|
|
16
|
+
void *_attr[2];
|
|
17
|
+
void *_state;
|
|
18
|
+
uint32_t _flags;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
+ (instancetype)emitterCell;
|
|
22
|
+
|
|
23
|
+
/* Emitter cells implement the same property model as defined by CALayer.
|
|
24
|
+
* See CALayer.h for more details. */
|
|
25
|
+
|
|
26
|
+
+ (nullable id)defaultValueForKey:(NSString *)key;
|
|
27
|
+
- (BOOL)shouldArchiveValueForKey:(NSString *)key;
|
|
28
|
+
|
|
29
|
+
/* The name of the cell. Used to construct key paths. Defaults to nil. */
|
|
30
|
+
|
|
31
|
+
@property(nullable, copy) NSString *name;
|
|
32
|
+
|
|
33
|
+
/* Controls whether or not cells from this emitter are rendered. */
|
|
34
|
+
|
|
35
|
+
@property(getter=isEnabled) BOOL enabled;
|
|
36
|
+
|
|
37
|
+
/* The number of emitted objects created every second. Default value is
|
|
38
|
+
* zero. Animatable. */
|
|
39
|
+
|
|
40
|
+
@property float birthRate;
|
|
41
|
+
|
|
42
|
+
/* The lifetime of each emitted object in seconds, specified as a mean
|
|
43
|
+
* value and a range about the mean. Both values default to zero.
|
|
44
|
+
* Animatable. */
|
|
45
|
+
|
|
46
|
+
@property float lifetime;
|
|
47
|
+
@property float lifetimeRange;
|
|
48
|
+
|
|
49
|
+
/* The orientation of the emission angle in radians, relative to the
|
|
50
|
+
* natural orientation angle of the emission shape. Note that latitude
|
|
51
|
+
* here is what is typically called colatitude, the zenith or phi, the
|
|
52
|
+
* angle from the z-axis. Similarly longitude is the angle in the
|
|
53
|
+
* xy-plane from the x-axis, often referred to as the azimuth or
|
|
54
|
+
* theta. Both values default to zero, which translates to no change
|
|
55
|
+
* relative to the emission shape's direction. Both values are
|
|
56
|
+
* animatable. */
|
|
57
|
+
|
|
58
|
+
@property CGFloat emissionLatitude;
|
|
59
|
+
@property CGFloat emissionLongitude;
|
|
60
|
+
|
|
61
|
+
/* An angle (in radians) defining a cone around the emission angle.
|
|
62
|
+
* Emitted objects are uniformly distributed across this cone. Defaults
|
|
63
|
+
* to zero. Animatable. */
|
|
64
|
+
|
|
65
|
+
@property CGFloat emissionRange;
|
|
66
|
+
|
|
67
|
+
/* The initial mean velocity of each emitted object, and its range. Both
|
|
68
|
+
* values default to zero. Animatable. */
|
|
69
|
+
|
|
70
|
+
@property CGFloat velocity;
|
|
71
|
+
@property CGFloat velocityRange;
|
|
72
|
+
|
|
73
|
+
/* The acceleration vector applied to emitted objects. Defaults to
|
|
74
|
+
* (0, 0, 0). Animatable. */
|
|
75
|
+
|
|
76
|
+
@property CGFloat xAcceleration;
|
|
77
|
+
@property CGFloat yAcceleration;
|
|
78
|
+
@property CGFloat zAcceleration;
|
|
79
|
+
|
|
80
|
+
/* The scale factor applied to each emitted object, defined as mean and
|
|
81
|
+
* range about the mean. Scale defaults to one, range to zero.
|
|
82
|
+
* Animatable. */
|
|
83
|
+
|
|
84
|
+
@property CGFloat scale;
|
|
85
|
+
@property CGFloat scaleRange;
|
|
86
|
+
@property CGFloat scaleSpeed;
|
|
87
|
+
|
|
88
|
+
/* The rotation speed applied to each emitted object, defined as mean
|
|
89
|
+
* and range about the mean. Defaults to zero. Animatable. */
|
|
90
|
+
|
|
91
|
+
@property CGFloat spin;
|
|
92
|
+
@property CGFloat spinRange;
|
|
93
|
+
|
|
94
|
+
/* The mean color of each emitted object, and the range from that mean
|
|
95
|
+
* color. `color' defaults to opaque white, `colorRange' to (0, 0, 0,
|
|
96
|
+
* 0). Animatable. */
|
|
97
|
+
|
|
98
|
+
@property(nullable) CGColorRef color;
|
|
99
|
+
|
|
100
|
+
@property float redRange;
|
|
101
|
+
@property float greenRange;
|
|
102
|
+
@property float blueRange;
|
|
103
|
+
@property float alphaRange;
|
|
104
|
+
|
|
105
|
+
/* The speed at which color components of emitted objects change over
|
|
106
|
+
* their lifetime, defined as the rate of change per second. Defaults
|
|
107
|
+
* to (0, 0, 0, 0). Animatable. */
|
|
108
|
+
|
|
109
|
+
@property float redSpeed;
|
|
110
|
+
@property float greenSpeed;
|
|
111
|
+
@property float blueSpeed;
|
|
112
|
+
@property float alphaSpeed;
|
|
113
|
+
|
|
114
|
+
/* The cell contents, typically a CGImageRef. Defaults to nil.
|
|
115
|
+
* Animatable. */
|
|
116
|
+
|
|
117
|
+
@property(nullable, strong) id contents;
|
|
118
|
+
|
|
119
|
+
/* The sub-rectangle of the contents image that will be drawn. See
|
|
120
|
+
* CALayer.h for more details. Defaults to the unit rectangle [0 0 1 1].
|
|
121
|
+
* Animatable. */
|
|
122
|
+
|
|
123
|
+
@property CGRect contentsRect;
|
|
124
|
+
|
|
125
|
+
/* Defines the scale factor applied to the contents of the cell. See
|
|
126
|
+
* CALayer.h for more details. */
|
|
127
|
+
|
|
128
|
+
@property CGFloat contentsScale;
|
|
129
|
+
|
|
130
|
+
/* The filter parameters used when rendering the `contents' image. See
|
|
131
|
+
* CALayer.h for more details. */
|
|
132
|
+
|
|
133
|
+
@property(copy) NSString *minificationFilter;
|
|
134
|
+
@property(copy) NSString *magnificationFilter;
|
|
135
|
+
@property float minificationFilterBias;
|
|
136
|
+
|
|
137
|
+
/* An array containing the sub-cells of this cell, or nil (the default
|
|
138
|
+
* value). When non-nil each particle emitted by the cell will act as
|
|
139
|
+
* an emitter for each of the cell's sub-cells. The emission point is
|
|
140
|
+
* the current particle position and the emission angle is relative to
|
|
141
|
+
* the current direction of the particle. Animatable. */
|
|
142
|
+
|
|
143
|
+
@property(nullable, copy) NSArray<CAEmitterCell *> *emitterCells;
|
|
144
|
+
|
|
145
|
+
/* Inherited attributes similar to in layers. */
|
|
146
|
+
|
|
147
|
+
@property(nullable, copy) NSDictionary *style;
|
|
148
|
+
|
|
149
|
+
@end
|
|
150
|
+
|
|
151
|
+
NS_HEADER_AUDIT_END(nullability, sendability)
|
|
152
|
+
|
|
153
|
+
#endif
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
/* CoreAnimation - CAEmitterLayer.h
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2007-2026, Apple Inc.
|
|
4
|
+
All rights reserved. */
|
|
5
|
+
|
|
6
|
+
/* Particle emitter layer.
|
|
7
|
+
*
|
|
8
|
+
* Each emitter has an array of cells, the cells define how particles
|
|
9
|
+
* are emitted and rendered by the layer.
|
|
10
|
+
*
|
|
11
|
+
* Particle system is affected by layer's timing. The simulation starts
|
|
12
|
+
* at layer's beginTime.
|
|
13
|
+
*
|
|
14
|
+
* The particles are drawn above the backgroundColor and border of the
|
|
15
|
+
* layer. */
|
|
16
|
+
|
|
17
|
+
#ifdef __OBJC__
|
|
18
|
+
|
|
19
|
+
#import <QuartzCore/CALayer.h>
|
|
20
|
+
|
|
21
|
+
typedef NSString * CAEmitterLayerEmitterShape NS_TYPED_ENUM API_AVAILABLE(macos(10.6), ios(5.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
22
|
+
typedef NSString * CAEmitterLayerEmitterMode NS_TYPED_ENUM API_AVAILABLE(macos(10.6), ios(5.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
23
|
+
typedef NSString * CAEmitterLayerRenderMode NS_TYPED_ENUM API_AVAILABLE(macos(10.6), ios(5.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
24
|
+
|
|
25
|
+
@class CAEmitterCell;
|
|
26
|
+
|
|
27
|
+
NS_HEADER_AUDIT_BEGIN(nullability, sendability)
|
|
28
|
+
|
|
29
|
+
API_AVAILABLE(macos(10.6), ios(5.0), tvos(9.0)) API_UNAVAILABLE(watchos)
|
|
30
|
+
@interface CAEmitterLayer : CALayer
|
|
31
|
+
|
|
32
|
+
/* The array of emitter cells attached to the layer. Each object must
|
|
33
|
+
* have the CAEmitterCell class. */
|
|
34
|
+
|
|
35
|
+
@property(nullable, copy) NSArray<CAEmitterCell *> *emitterCells;
|
|
36
|
+
|
|
37
|
+
/* The birth rate of each cell is multiplied by this number to give the
|
|
38
|
+
* actual number of particles created every second. Default value is one.
|
|
39
|
+
* Animatable. */
|
|
40
|
+
|
|
41
|
+
@property float birthRate;
|
|
42
|
+
|
|
43
|
+
/* The cell lifetime range is multiplied by this value when particles are
|
|
44
|
+
* created. Defaults to one. Animatable. */
|
|
45
|
+
|
|
46
|
+
@property float lifetime;
|
|
47
|
+
|
|
48
|
+
/* The center of the emission shape. Defaults to (0, 0, 0). Animatable. */
|
|
49
|
+
|
|
50
|
+
@property CGPoint emitterPosition;
|
|
51
|
+
@property CGFloat emitterZPosition;
|
|
52
|
+
|
|
53
|
+
/* The size of the emission shape. Defaults to (0, 0, 0). Animatable.
|
|
54
|
+
* Depending on the `emitterShape' property some of the values may be
|
|
55
|
+
* ignored. */
|
|
56
|
+
|
|
57
|
+
@property CGSize emitterSize;
|
|
58
|
+
@property CGFloat emitterDepth;
|
|
59
|
+
|
|
60
|
+
/* A string defining the type of emission shape used. Current options are:
|
|
61
|
+
* `point' (the default), `line', `rectangle', `circle', `cuboid' and
|
|
62
|
+
* `sphere'. */
|
|
63
|
+
|
|
64
|
+
@property(copy) CAEmitterLayerEmitterShape emitterShape;
|
|
65
|
+
|
|
66
|
+
/* A string defining how particles are created relative to the emission
|
|
67
|
+
* shape. Current options are `points', `outline', `surface' and
|
|
68
|
+
* `volume' (the default). */
|
|
69
|
+
|
|
70
|
+
@property(copy) CAEmitterLayerEmitterMode emitterMode;
|
|
71
|
+
|
|
72
|
+
/* A string defining how particles are composited into the layer's
|
|
73
|
+
* image. Current options are `unordered' (the default), `oldestFirst',
|
|
74
|
+
* `oldestLast', `backToFront' (i.e. sorted into Z order) and
|
|
75
|
+
* `additive'. The first four use source-over compositing, the last
|
|
76
|
+
* uses additive compositing. */
|
|
77
|
+
|
|
78
|
+
@property(copy) CAEmitterLayerRenderMode renderMode;
|
|
79
|
+
|
|
80
|
+
/* When true the particles are rendered as if they directly inhabit the
|
|
81
|
+
* three dimensional coordinate space of the layer's superlayer, rather
|
|
82
|
+
* than being flattened into the layer's plane first. Defaults to NO.
|
|
83
|
+
* If true, the effect of the `filters', `backgroundFilters' and shadow-
|
|
84
|
+
* related properties of the layer is undefined. */
|
|
85
|
+
|
|
86
|
+
@property BOOL preservesDepth;
|
|
87
|
+
|
|
88
|
+
/* Multiplies the cell-defined particle velocity. Defaults to one.
|
|
89
|
+
* Animatable. */
|
|
90
|
+
|
|
91
|
+
@property float velocity;
|
|
92
|
+
|
|
93
|
+
/* Multiplies the cell-defined particle scale. Defaults to one. Animatable. */
|
|
94
|
+
|
|
95
|
+
@property float scale;
|
|
96
|
+
|
|
97
|
+
/* Multiplies the cell-defined particle spin. Defaults to one. Animatable. */
|
|
98
|
+
|
|
99
|
+
@property float spin;
|
|
100
|
+
|
|
101
|
+
/* The seed used to initialize the random number generator. Defaults to
|
|
102
|
+
* zero. Each layer has its own RNG state. For properties with a mean M
|
|
103
|
+
* and a range R, random values of the properties are uniformly
|
|
104
|
+
* distributed in the interval [M - R/2, M + R/2]. */
|
|
105
|
+
|
|
106
|
+
@property unsigned int seed;
|
|
107
|
+
|
|
108
|
+
@end
|
|
109
|
+
|
|
110
|
+
/** `emitterShape' values. **/
|
|
111
|
+
|
|
112
|
+
CA_EXTERN CAEmitterLayerEmitterShape const kCAEmitterLayerPoint
|
|
113
|
+
API_AVAILABLE(macos(10.6), ios(5.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
114
|
+
CA_EXTERN CAEmitterLayerEmitterShape const kCAEmitterLayerLine
|
|
115
|
+
API_AVAILABLE(macos(10.6), ios(5.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
116
|
+
CA_EXTERN CAEmitterLayerEmitterShape const kCAEmitterLayerRectangle
|
|
117
|
+
API_AVAILABLE(macos(10.6), ios(5.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
118
|
+
CA_EXTERN CAEmitterLayerEmitterShape const kCAEmitterLayerCuboid
|
|
119
|
+
API_AVAILABLE(macos(10.6), ios(5.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
120
|
+
CA_EXTERN CAEmitterLayerEmitterShape const kCAEmitterLayerCircle
|
|
121
|
+
API_AVAILABLE(macos(10.6), ios(5.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
122
|
+
CA_EXTERN CAEmitterLayerEmitterShape const kCAEmitterLayerSphere
|
|
123
|
+
API_AVAILABLE(macos(10.6), ios(5.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
124
|
+
|
|
125
|
+
/** `emitterMode' values. **/
|
|
126
|
+
|
|
127
|
+
CA_EXTERN CAEmitterLayerEmitterMode const kCAEmitterLayerPoints
|
|
128
|
+
API_AVAILABLE(macos(10.6), ios(5.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
129
|
+
CA_EXTERN CAEmitterLayerEmitterMode const kCAEmitterLayerOutline
|
|
130
|
+
API_AVAILABLE(macos(10.6), ios(5.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
131
|
+
CA_EXTERN CAEmitterLayerEmitterMode const kCAEmitterLayerSurface
|
|
132
|
+
API_AVAILABLE(macos(10.6), ios(5.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
133
|
+
CA_EXTERN CAEmitterLayerEmitterMode const kCAEmitterLayerVolume
|
|
134
|
+
API_AVAILABLE(macos(10.6), ios(5.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
135
|
+
|
|
136
|
+
/** `renderMode' values. **/
|
|
137
|
+
|
|
138
|
+
CA_EXTERN CAEmitterLayerRenderMode const kCAEmitterLayerUnordered
|
|
139
|
+
API_AVAILABLE(macos(10.6), ios(5.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
140
|
+
CA_EXTERN CAEmitterLayerRenderMode const kCAEmitterLayerOldestFirst
|
|
141
|
+
API_AVAILABLE(macos(10.6), ios(5.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
142
|
+
CA_EXTERN CAEmitterLayerRenderMode const kCAEmitterLayerOldestLast
|
|
143
|
+
API_AVAILABLE(macos(10.6), ios(5.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
144
|
+
CA_EXTERN CAEmitterLayerRenderMode const kCAEmitterLayerBackToFront
|
|
145
|
+
API_AVAILABLE(macos(10.6), ios(5.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
146
|
+
CA_EXTERN CAEmitterLayerRenderMode const kCAEmitterLayerAdditive
|
|
147
|
+
API_AVAILABLE(macos(10.6), ios(5.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
148
|
+
|
|
149
|
+
NS_HEADER_AUDIT_END(nullability, sendability)
|
|
150
|
+
|
|
151
|
+
#endif
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* CoreAnimation - CAFrameRateRange.h
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020-2026, Apple Inc.
|
|
4
|
+
All rights reserved. */
|
|
5
|
+
|
|
6
|
+
#ifndef CAFRAMERATERANGE_H
|
|
7
|
+
#define CAFRAMERATERANGE_H
|
|
8
|
+
|
|
9
|
+
#include <QuartzCore/CABase.h>
|
|
10
|
+
#include <stdbool.h>
|
|
11
|
+
|
|
12
|
+
struct CAFrameRateRange {
|
|
13
|
+
float minimum;
|
|
14
|
+
float maximum;
|
|
15
|
+
float preferred CF_REFINED_FOR_SWIFT;
|
|
16
|
+
} API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0)) API_UNAVAILABLE(watchos);
|
|
17
|
+
|
|
18
|
+
typedef struct CAFrameRateRange CAFrameRateRange
|
|
19
|
+
API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0)) API_UNAVAILABLE(watchos);
|
|
20
|
+
|
|
21
|
+
CA_EXTERN_C_BEGIN
|
|
22
|
+
|
|
23
|
+
CA_EXTERN const CAFrameRateRange CAFrameRateRangeDefault
|
|
24
|
+
API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0)) API_UNAVAILABLE(watchos)
|
|
25
|
+
CF_SWIFT_NAME(CAFrameRateRange.default);
|
|
26
|
+
|
|
27
|
+
CA_EXTERN CAFrameRateRange CAFrameRateRangeMake(float minimum,
|
|
28
|
+
float maximum,
|
|
29
|
+
float preferred)
|
|
30
|
+
API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0)) API_UNAVAILABLE(watchos)
|
|
31
|
+
CF_SWIFT_UNAVAILABLE("Use CAFrameRateRange.init(minimum:maximum:preferred) instead");
|
|
32
|
+
|
|
33
|
+
CA_EXTERN bool CAFrameRateRangeIsEqualToRange(CAFrameRateRange range,
|
|
34
|
+
CAFrameRateRange other)
|
|
35
|
+
API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0)) API_UNAVAILABLE(watchos)
|
|
36
|
+
CF_REFINED_FOR_SWIFT;
|
|
37
|
+
|
|
38
|
+
CA_EXTERN_C_END
|
|
39
|
+
|
|
40
|
+
#endif /* CAFRAMERATERANGE_H */
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/* CoreAnimation - CAGradientLayer.h
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2008-2026, Apple Inc.
|
|
4
|
+
All rights reserved. */
|
|
5
|
+
|
|
6
|
+
/* The gradient layer draws a color gradient over its background color,
|
|
7
|
+
* filling the shape of the layer (i.e. including rounded corners). */
|
|
8
|
+
|
|
9
|
+
#ifdef __OBJC__
|
|
10
|
+
|
|
11
|
+
#import <QuartzCore/CALayer.h>
|
|
12
|
+
#import <QuartzCore/CAMediaTimingFunction.h>
|
|
13
|
+
#import <Foundation/Foundation.h>
|
|
14
|
+
|
|
15
|
+
NS_HEADER_AUDIT_BEGIN(nullability, sendability)
|
|
16
|
+
|
|
17
|
+
typedef NSString * CAGradientLayerType NS_TYPED_ENUM API_AVAILABLE(macos(10.6), ios(3.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
18
|
+
|
|
19
|
+
API_AVAILABLE(macos(10.6), ios(3.0), tvos(9.0)) API_UNAVAILABLE(watchos)
|
|
20
|
+
@interface CAGradientLayer : CALayer
|
|
21
|
+
|
|
22
|
+
/* The array of CGColorRef objects defining the color of each gradient
|
|
23
|
+
* stop. Defaults to nil. Animatable. */
|
|
24
|
+
|
|
25
|
+
@property(nullable, copy) NSArray *colors;
|
|
26
|
+
|
|
27
|
+
/* An optional array of NSNumber objects defining the location of each
|
|
28
|
+
* gradient stop as a value in the range [0,1]. The values must be
|
|
29
|
+
* monotonically increasing. If a nil array is given, the stops are
|
|
30
|
+
* assumed to spread uniformly across the [0,1] range. When rendered,
|
|
31
|
+
* the colors are mapped to the output colorspace before being
|
|
32
|
+
* interpolated. Defaults to nil. Animatable. */
|
|
33
|
+
|
|
34
|
+
@property(nullable, copy) NSArray<NSNumber *> *locations;
|
|
35
|
+
|
|
36
|
+
/* The start and end points of the gradient when drawn into the layer's
|
|
37
|
+
* coordinate space. The start point corresponds to the first gradient
|
|
38
|
+
* stop, the end point to the last gradient stop. Both points are
|
|
39
|
+
* defined in a unit coordinate space that is then mapped to the
|
|
40
|
+
* layer's bounds rectangle when drawn. (I.e. [0,0] is the bottom-left
|
|
41
|
+
* corner of the layer, [1,1] is the top-right corner.) The default values
|
|
42
|
+
* are [.5,0] and [.5,1] respectively. Both are animatable. */
|
|
43
|
+
|
|
44
|
+
@property CGPoint startPoint;
|
|
45
|
+
@property CGPoint endPoint;
|
|
46
|
+
|
|
47
|
+
/* The kind of gradient that will be drawn. Currently, the only allowed
|
|
48
|
+
* values are `axial' (the default value), `radial', and `conic'. */
|
|
49
|
+
|
|
50
|
+
@property(copy) CAGradientLayerType type;
|
|
51
|
+
|
|
52
|
+
@end
|
|
53
|
+
|
|
54
|
+
/** `type' values. **/
|
|
55
|
+
|
|
56
|
+
CA_EXTERN CAGradientLayerType const kCAGradientLayerAxial
|
|
57
|
+
API_AVAILABLE(macos(10.6), ios(3.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
58
|
+
|
|
59
|
+
/* Radial gradient. The gradient is defined as an ellipse with its
|
|
60
|
+
* center at 'startPoint' and its width and height defined by
|
|
61
|
+
* '(endPoint.x - startPoint.x) * 2' and '(endPoint.y - startPoint.y) *
|
|
62
|
+
* 2' respectively. */
|
|
63
|
+
|
|
64
|
+
CA_EXTERN CAGradientLayerType const kCAGradientLayerRadial
|
|
65
|
+
API_AVAILABLE(macos(10.6), ios(3.2), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
66
|
+
|
|
67
|
+
/* Conic gradient. The gradient is centered at 'startPoint' and its 0-degrees
|
|
68
|
+
* direction is defined by a vector spanned between 'startPoint' and
|
|
69
|
+
* 'endPoint'. When 'startPoint' and 'endPoint' overlap the results are
|
|
70
|
+
* undefined. The gradient's angle increases in the direction of rotation of
|
|
71
|
+
* positive x-axis towards positive y-axis. */
|
|
72
|
+
|
|
73
|
+
CA_EXTERN CAGradientLayerType const kCAGradientLayerConic
|
|
74
|
+
API_AVAILABLE(macos(10.14), ios(12.0), tvos(12.0)) API_UNAVAILABLE(watchos);
|
|
75
|
+
|
|
76
|
+
NS_HEADER_AUDIT_END(nullability, sendability)
|
|
77
|
+
|
|
78
|
+
#endif
|