peachsim 0.1.1728 → 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 +68 -16
- package/cli/commands/coverage-swift.ts +112 -4
- 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 +33 -21
- package/cli/commands/push.ts +56 -0
- package/cli/commands/serve.ts +9 -0
- package/cli/commands/shell-url.ts +41 -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 +28 -7
- package/cli/ws-bridge.ts +3 -1
- package/detox/index.ts +18 -5
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +5 -2
- package/dist-lib/auth/shared-session.cjs +5 -2
- 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 +9932 -4561
- 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 +30 -8
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +6886 -3303
- package/dist-lib/expo-swift-metadata.cjs +14 -2
- package/dist-lib/expo-swift-metadata.mjs +14 -2
- package/dist-lib/home-paths.cjs +7 -2
- package/dist-lib/host/bridge-host.cjs +8513 -3085
- package/dist-lib/host/fetch-proxy-handler.cjs +19 -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 +175 -80
- 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 +209 -32
- package/dist-lib/menu.cjs +7 -1
- package/dist-lib/menu.mjs +7 -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 +146 -76
- package/dist-lib/native-app-identity-project.cjs +76 -39
- package/dist-lib/native-app-identity-project.mjs +76 -39
- 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 +5 -2
- 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 +138 -80
- package/dist-lib/react-native-host-modules.cjs +5 -2
- package/dist-lib/react-native-host-modules.mjs +5 -2
- 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 +41126 -36493
- package/dist-lib/swift-compile.cjs +2103 -444
- package/dist-lib/swift-compile.mjs +2025 -369
- 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 +84 -24
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +6094 -2687
- package/dist-lib/vite.cjs +32 -10
- 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/font-config.d.ts +7 -4
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +1 -3
- package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +0 -5
- package/dist-types/packages/peach-engine/src/engine/memory-counts.d.ts +8 -0
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +10 -1
- package/dist-types/packages/peach-engine/src/engine/paint-boundary.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/render-damage.d.ts +2 -2
- 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 +6 -0
- package/dist-types/packages/peach-engine/src/engine/text-paragraph.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/native-preview-bundle.d.ts +2 -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 +15 -2
- 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 +6 -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 +14 -1
- 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 +8 -0
- package/kotlin/README.md +3 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +2 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccount.h +55 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountCredential.h +35 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountStore.h +94 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountType.h +53 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACError.h +37 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/Accounts.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/AccountsDefines.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Modules/module.modulemap +5 -0
- 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 +58 -9
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +992 -98
- 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/os/signpost.h +414 -0
- package/sdk/ios/usr/include/os.modulemap +5 -0
- package/sdk/ios/usr/include/sys/socketvar.h +191 -0
- package/sdk/ios/usr/include/sys/vsock.h +84 -0
- package/sdk/ios/wasm/include/errno.h +4 -20
- package/sdk/ios/wasm/include/pthread.h +3 -0
- package/sdk/ios/wasm/include/setjmp.h +57 -0
- package/sdk/ios/wasm/include/sys/resource.h +2 -2
- package/sdk/native-hashes.json +3 -3
- package/skills/contrast/SKILL.md +6 -5
- package/skills/peach-debug/SKILL.md +68 -265
- 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 -402
- 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 -217
- 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 -285
- 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 -106
- package/src/android-autolinking.ts +1 -0
- package/src/android-bridge-packages.ts +279 -0
- package/src/appPackageContract.ts +14 -1
- package/src/assetCatalogContract.ts +8 -1
- package/src/bridge-contract.ts +6 -0
- package/src/bundle-channel.mjs +152 -60
- package/src/cli-runtime.ts +3 -0
- package/src/configured-bundle-producer.ts +10 -0
- package/src/device-catalog.ts +68 -4
- package/src/expo-discovery-cache.ts +10 -3
- package/src/expo-kotlin-host.ts +97 -26
- package/src/expo-native-workspace.ts +211 -52
- package/src/expo-swift-host.ts +149 -123
- package/src/expo-swift-ready.ts +5 -1
- package/src/expo-widget-assets.ts +76 -0
- package/src/expoKotlinContract.ts +12 -2
- package/src/expoSwiftContract.ts +21 -2
- package/src/generated/swift-c-predefines.json +1 -1
- package/src/home-paths.ts +6 -1
- package/src/host/bridge-host.ts +5 -0
- package/src/host/fetch-proxy-handler.ts +10 -0
- package/src/host/websocket-proxy.ts +7 -2
- package/src/kotlin-host.ts +204 -30
- package/src/kotlinSdkContract.ts +2 -1
- package/src/menu.ts +7 -0
- package/src/native-prebuilt.ts +154 -0
- package/src/nitro-adapter.lock.json +261 -261
- package/src/nitro-adapter.ts +118 -50
- package/src/nitro-bundle.ts +134 -96
- package/src/nitro-compile.ts +16 -6
- package/src/nitro-dependencies.ts +43 -28
- package/src/nitro-source.ts +142 -30
- package/src/nitro-superset.lock.json +103 -0
- package/src/nitro-superset.ts +137 -0
- package/src/nitroAdapterContract.ts +146 -98
- package/src/nitroContract.ts +68 -21
- package/src/react-bridge-importers.ts +1 -0
- package/src/react-native-bridge-modules.ts +2 -0
- package/src/react-native-host-modules.ts +4 -1
- package/src/settingsContract.ts +37 -1
- package/src/storageSnapshotContract.ts +29 -81
- package/src/swift-compile.ts +315 -117
- package/src/swift-compiler-digest.ts +2 -0
- package/src/swift-coverage/indexdump.ts +22 -6
- package/src/swift-coverage/indexing.ts +4 -4
- package/src/swift-coverage/sdk.ts +104 -20
- package/src/swift-coverage/types.ts +34 -0
- package/src/swift-coverage/xcode-packages.ts +61 -1
- package/src/swift-coverage/xcode.ts +19 -13
- package/src/swift-cxx-reachable.ts +1 -1
- package/src/swift-distribution.lock.json +18 -13
- package/src/swift-distribution.ts +57 -26
- package/src/swift-host.ts +51 -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-standin-emit.ts +6 -1
- package/src/swift-standins.ts +403 -19
- package/src/swift-submit.ts +17 -1
- package/src/swift-toolchain.ts +98 -23
- package/src/swift-wasm-prune.ts +1629 -0
- package/src/turbo-bundle.ts +82 -0
- package/src/turbo-compile.ts +120 -0
- package/src/turbo-runtime.lock.json +69 -0
- package/src/turbo-source.ts +754 -0
- package/src/vite-plugin-one.ts +15 -3
- 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,1078 @@
|
|
|
1
|
+
/* CoreAnimation - CALayer.h
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2006-2026, Apple Inc.
|
|
4
|
+
All rights reserved. */
|
|
5
|
+
|
|
6
|
+
#ifdef __OBJC__
|
|
7
|
+
|
|
8
|
+
#import <QuartzCore/CAMediaTiming.h>
|
|
9
|
+
#import <QuartzCore/CATransform3D.h>
|
|
10
|
+
#import <Foundation/Foundation.h>
|
|
11
|
+
#import <Foundation/Foundation.h>
|
|
12
|
+
#import <Foundation/Foundation.h>
|
|
13
|
+
#import <Foundation/Foundation.h>
|
|
14
|
+
|
|
15
|
+
@class NSEnumerator, CAAnimation, CALayerArray;
|
|
16
|
+
@protocol CAAction, CALayerDelegate;
|
|
17
|
+
@protocol CALayoutManager;
|
|
18
|
+
|
|
19
|
+
NS_HEADER_AUDIT_BEGIN(nullability, sendability)
|
|
20
|
+
|
|
21
|
+
typedef NSString * CALayerContentsGravity NS_TYPED_ENUM API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
22
|
+
typedef NSString * CALayerContentsFormat NS_TYPED_ENUM API_AVAILABLE(macos(10.12), ios(10.0), tvos(10.0)) API_UNAVAILABLE(watchos);
|
|
23
|
+
typedef NSString * CALayerContentsFilter NS_TYPED_ENUM API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
24
|
+
typedef NSString * CALayerCornerCurve NS_TYPED_ENUM API_AVAILABLE(macos(10.15), ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
|
|
25
|
+
|
|
26
|
+
/* Bit definitions for `autoresizingMask' property. */
|
|
27
|
+
|
|
28
|
+
typedef NS_OPTIONS (unsigned int, CAAutoresizingMask)
|
|
29
|
+
{
|
|
30
|
+
kCALayerNotSizable = 0,
|
|
31
|
+
kCALayerMinXMargin = 1U << 0,
|
|
32
|
+
kCALayerWidthSizable = 1U << 1,
|
|
33
|
+
kCALayerMaxXMargin = 1U << 2,
|
|
34
|
+
kCALayerMinYMargin = 1U << 3,
|
|
35
|
+
kCALayerHeightSizable = 1U << 4,
|
|
36
|
+
kCALayerMaxYMargin = 1U << 5
|
|
37
|
+
} API_AVAILABLE(macCatalyst(13.1)) API_UNAVAILABLE(ios, tvos, watchos, visionos);
|
|
38
|
+
|
|
39
|
+
/* Options that control when to tone map CALayer contents and
|
|
40
|
+
CAMetalLayer drawables. Defaults to CAToneMapModeAutomatic. */
|
|
41
|
+
typedef NSString * CAToneMapMode NS_TYPED_ENUM NS_SWIFT_NAME(CALayer.ToneMapMode)
|
|
42
|
+
API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), visionos(2.0)) API_UNAVAILABLE(watchos);
|
|
43
|
+
|
|
44
|
+
/* Let the OS decide whether to tone map. */
|
|
45
|
+
extern CAToneMapMode const CAToneMapModeAutomatic NS_SWIFT_NAME(automatic)
|
|
46
|
+
API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), visionos(2.0)) API_UNAVAILABLE(watchos);
|
|
47
|
+
|
|
48
|
+
/* Never tone map contents. */
|
|
49
|
+
extern CAToneMapMode const CAToneMapModeNever NS_SWIFT_NAME(never)
|
|
50
|
+
API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), visionos(2.0)) API_UNAVAILABLE(watchos);
|
|
51
|
+
|
|
52
|
+
/* Tone map whenever supported by the OS. This includes
|
|
53
|
+
PQ, HLG and extended-range contents for CALayer
|
|
54
|
+
and CAMetalLayers. */
|
|
55
|
+
extern CAToneMapMode const CAToneMapModeIfSupported NS_SWIFT_NAME(ifSupported)
|
|
56
|
+
API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), visionos(2.0)) API_UNAVAILABLE(watchos);
|
|
57
|
+
|
|
58
|
+
/* Options that control how to tone map the CGColors and contents of the layer. */
|
|
59
|
+
|
|
60
|
+
typedef NSString * CADynamicRange NS_TYPED_ENUM NS_SWIFT_NAME(CALayer.DynamicRange)
|
|
61
|
+
API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), visionos(26.0)) API_UNAVAILABLE(watchos);
|
|
62
|
+
|
|
63
|
+
/* Automatic dynamic range. The system will decide how much dynamic range to use.
|
|
64
|
+
* If you want to render the content in an SDR form, you should explicitly use
|
|
65
|
+
* CADynamicRangeStandard. If user will be primarily focused on this view, such
|
|
66
|
+
* as a fullscreen layer or an editing canvas, you may explicitly set
|
|
67
|
+
* CADynamicRangeHigh. */
|
|
68
|
+
|
|
69
|
+
extern CADynamicRange const CADynamicRangeAutomatic NS_SWIFT_NAME(automatic)
|
|
70
|
+
API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), visionos(26.0)) API_UNAVAILABLE(watchos);
|
|
71
|
+
|
|
72
|
+
/* Standard dynamic range. Any tonemapped images or colors with headroom tagging
|
|
73
|
+
* will be tonemapped to a maximum pixel value of 1.0. */
|
|
74
|
+
|
|
75
|
+
extern CADynamicRange const CADynamicRangeStandard NS_SWIFT_NAME(standard)
|
|
76
|
+
API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), visionos(26.0)) API_UNAVAILABLE(watchos);
|
|
77
|
+
|
|
78
|
+
/* Uses extended dynamic range, but brightness is modulated to optimize for
|
|
79
|
+
* co-existence with other composited content. For best results, images should
|
|
80
|
+
* contain contentAverageLightLevel metadata. Refer to CGImage API for more
|
|
81
|
+
* details. */
|
|
82
|
+
|
|
83
|
+
extern CADynamicRange const CADynamicRangeConstrainedHigh NS_SWIFT_NAME(constrainedHigh)
|
|
84
|
+
API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), visionos(26.0)) API_UNAVAILABLE(watchos);
|
|
85
|
+
|
|
86
|
+
/* High dynamic range. Provides the best HDR quality. This should be reserved
|
|
87
|
+
* for situations where the user is expected to be focused on the media, such as
|
|
88
|
+
* larger views in an image editing/viewing app, or annotating/drawing with HDR colors. */
|
|
89
|
+
|
|
90
|
+
extern CADynamicRange const CADynamicRangeHigh NS_SWIFT_NAME(high)
|
|
91
|
+
API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), visionos(26.0)) API_UNAVAILABLE(watchos);
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
/* Bit definitions for `edgeAntialiasingMask' property. */
|
|
95
|
+
|
|
96
|
+
typedef NS_OPTIONS (unsigned int, CAEdgeAntialiasingMask)
|
|
97
|
+
{
|
|
98
|
+
kCALayerLeftEdge = 1U << 0, /* Minimum X edge. */
|
|
99
|
+
kCALayerRightEdge = 1U << 1, /* Maximum X edge. */
|
|
100
|
+
kCALayerBottomEdge = 1U << 2, /* Minimum Y edge. */
|
|
101
|
+
kCALayerTopEdge = 1U << 3, /* Maximum Y edge. */
|
|
102
|
+
} API_AVAILABLE(macos(10.10), ios(8.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
103
|
+
|
|
104
|
+
/* Bit definitions for `maskedCorners' property. */
|
|
105
|
+
|
|
106
|
+
typedef NS_OPTIONS (NSUInteger, CACornerMask)
|
|
107
|
+
{
|
|
108
|
+
kCALayerMinXMinYCorner = 1U << 0,
|
|
109
|
+
kCALayerMaxXMinYCorner = 1U << 1,
|
|
110
|
+
kCALayerMinXMaxYCorner = 1U << 2,
|
|
111
|
+
kCALayerMaxXMaxYCorner = 1U << 3,
|
|
112
|
+
} API_AVAILABLE(macos(10.13), ios(11.0), tvos(11.0)) API_UNAVAILABLE(watchos);
|
|
113
|
+
|
|
114
|
+
/** The base layer class. **/
|
|
115
|
+
|
|
116
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos)
|
|
117
|
+
@interface CALayer : NSObject <NSSecureCoding, CAMediaTiming>
|
|
118
|
+
|
|
119
|
+
/** Layer creation and initialization. **/
|
|
120
|
+
|
|
121
|
+
+ (instancetype)layer;
|
|
122
|
+
|
|
123
|
+
/* The designated initializer. */
|
|
124
|
+
|
|
125
|
+
- (instancetype)init;
|
|
126
|
+
|
|
127
|
+
/* This initializer is used by CoreAnimation to create shadow copies of
|
|
128
|
+
* layers, e.g. for use as presentation layers. Subclasses can override
|
|
129
|
+
* this method to copy their instance variables into the presentation
|
|
130
|
+
* layer (subclasses should call the superclass afterwards). Calling this
|
|
131
|
+
* method in any other situation will result in undefined behavior. */
|
|
132
|
+
|
|
133
|
+
- (instancetype)initWithLayer:(id)layer;
|
|
134
|
+
|
|
135
|
+
/* Returns a copy of the layer containing all properties as they were
|
|
136
|
+
* at the start of the current transaction, with any active animations
|
|
137
|
+
* applied. This gives a close approximation to the version of the layer
|
|
138
|
+
* that is currently displayed. Returns nil if the layer has not yet
|
|
139
|
+
* been committed.
|
|
140
|
+
*
|
|
141
|
+
* The effect of attempting to modify the returned layer in any way is
|
|
142
|
+
* undefined.
|
|
143
|
+
*
|
|
144
|
+
* The `sublayers', `mask' and `superlayer' properties of the returned
|
|
145
|
+
* layer return the presentation versions of these properties. This
|
|
146
|
+
* carries through to read-only layer methods. E.g., calling -hitTest:
|
|
147
|
+
* on the result of the -presentationLayer will query the presentation
|
|
148
|
+
* values of the layer tree. */
|
|
149
|
+
|
|
150
|
+
- (nullable instancetype)presentationLayer;
|
|
151
|
+
|
|
152
|
+
/* When called on the result of the -presentationLayer method, returns
|
|
153
|
+
* the underlying layer with the current model values. When called on a
|
|
154
|
+
* non-presentation layer, returns the receiver. The result of calling
|
|
155
|
+
* this method after the transaction that produced the presentation
|
|
156
|
+
* layer has completed is undefined. */
|
|
157
|
+
|
|
158
|
+
- (instancetype)modelLayer;
|
|
159
|
+
|
|
160
|
+
/** Property methods. **/
|
|
161
|
+
|
|
162
|
+
/* CALayer implements the standard NSKeyValueCoding protocol for all
|
|
163
|
+
* Objective C properties defined by the class and its subclasses. It
|
|
164
|
+
* dynamically implements missing accessor methods for properties
|
|
165
|
+
* declared by subclasses.
|
|
166
|
+
*
|
|
167
|
+
* When accessing properties via KVC whose values are not objects, the
|
|
168
|
+
* standard KVC wrapping conventions are used, with extensions to
|
|
169
|
+
* support the following types:
|
|
170
|
+
*
|
|
171
|
+
* C Type Class
|
|
172
|
+
* ------ -----
|
|
173
|
+
* CGPoint NSValue
|
|
174
|
+
* CGSize NSValue
|
|
175
|
+
* CGRect NSValue
|
|
176
|
+
* CGAffineTransform NSValue (NSAffineTransform on macOS)
|
|
177
|
+
* CATransform3D NSValue */
|
|
178
|
+
|
|
179
|
+
/* Returns the default value of the named property, or nil if no
|
|
180
|
+
* default value is known. Subclasses that override this method to
|
|
181
|
+
* define default values for their own properties should call `super'
|
|
182
|
+
* for unknown properties. */
|
|
183
|
+
|
|
184
|
+
+ (nullable id)defaultValueForKey:(NSString *)key;
|
|
185
|
+
|
|
186
|
+
/* Method for subclasses to override. Returning true for a given
|
|
187
|
+
* property causes the layer's contents to be redrawn when the property
|
|
188
|
+
* is changed (including when changed by an animation attached to the
|
|
189
|
+
* layer). The default implementation returns NO. Subclasses should
|
|
190
|
+
* call super for properties defined by the superclass. (For example,
|
|
191
|
+
* do not try to return YES for properties implemented by CALayer,
|
|
192
|
+
* doing will have undefined results.) */
|
|
193
|
+
|
|
194
|
+
+ (BOOL)needsDisplayForKey:(NSString *)key;
|
|
195
|
+
|
|
196
|
+
/* Called by the object's implementation of -encodeWithCoder:, returns
|
|
197
|
+
* false if the named property should not be archived. The base
|
|
198
|
+
* implementation returns YES. Subclasses should call super for
|
|
199
|
+
* unknown properties. */
|
|
200
|
+
|
|
201
|
+
- (BOOL)shouldArchiveValueForKey:(NSString *)key;
|
|
202
|
+
|
|
203
|
+
/** Geometry and layer hierarchy properties. **/
|
|
204
|
+
|
|
205
|
+
/* The bounds of the layer. Defaults to CGRectZero. Animatable. */
|
|
206
|
+
|
|
207
|
+
@property CGRect bounds;
|
|
208
|
+
|
|
209
|
+
/* The position in the superlayer that the anchor point of the layer's
|
|
210
|
+
* bounds rect is aligned to. Defaults to the zero point. Animatable. */
|
|
211
|
+
|
|
212
|
+
@property CGPoint position;
|
|
213
|
+
|
|
214
|
+
/* The Z component of the layer's position in its superlayer. Defaults
|
|
215
|
+
* to zero. Animatable. */
|
|
216
|
+
|
|
217
|
+
@property CGFloat zPosition;
|
|
218
|
+
|
|
219
|
+
/* Defines the anchor point of the layer's bounds rect, as a point in
|
|
220
|
+
* normalized layer coordinates - '(0, 0)' is the bottom left corner of
|
|
221
|
+
* the bounds rect, '(1, 1)' is the top right corner. Defaults to
|
|
222
|
+
* '(0.5, 0.5)', i.e. the center of the bounds rect. Animatable. */
|
|
223
|
+
|
|
224
|
+
@property CGPoint anchorPoint;
|
|
225
|
+
|
|
226
|
+
/* The Z component of the layer's anchor point (i.e. reference point for
|
|
227
|
+
* position and transform). Defaults to zero. Animatable. */
|
|
228
|
+
|
|
229
|
+
@property CGFloat anchorPointZ;
|
|
230
|
+
|
|
231
|
+
/* A transform applied to the layer relative to the anchor point of its
|
|
232
|
+
* bounds rect. Defaults to the identity transform. Animatable. */
|
|
233
|
+
|
|
234
|
+
@property CATransform3D transform;
|
|
235
|
+
|
|
236
|
+
/* Convenience methods for accessing the `transform' property as an
|
|
237
|
+
* affine transform. */
|
|
238
|
+
|
|
239
|
+
- (CGAffineTransform)affineTransform;
|
|
240
|
+
- (void)setAffineTransform:(CGAffineTransform)m;
|
|
241
|
+
|
|
242
|
+
/* Unlike NSView, each Layer in the hierarchy has an implicit frame
|
|
243
|
+
* rectangle, a function of the `position', `bounds', `anchorPoint',
|
|
244
|
+
* and `transform' properties. When setting the frame the `position'
|
|
245
|
+
* and `bounds.size' are changed to match the given frame. */
|
|
246
|
+
|
|
247
|
+
@property CGRect frame;
|
|
248
|
+
|
|
249
|
+
/* When true the layer and its sublayers are not displayed. Defaults to
|
|
250
|
+
* NO. Animatable. */
|
|
251
|
+
|
|
252
|
+
@property(getter=isHidden) BOOL hidden;
|
|
253
|
+
|
|
254
|
+
/* When false layers facing away from the viewer are hidden from view.
|
|
255
|
+
* Defaults to YES. Animatable. */
|
|
256
|
+
|
|
257
|
+
@property(getter=isDoubleSided) BOOL doubleSided;
|
|
258
|
+
|
|
259
|
+
/* Whether or not the geometry of the layer (and its sublayers) is
|
|
260
|
+
* flipped vertically. Defaults to NO. Note that even when geometry is
|
|
261
|
+
* flipped, image orientation remains the same (i.e. a CGImageRef
|
|
262
|
+
* stored in the `contents' property will display the same with both
|
|
263
|
+
* flipped=NO and flipped=YES, assuming no transform on the layer). */
|
|
264
|
+
|
|
265
|
+
@property(getter=isGeometryFlipped) BOOL geometryFlipped;
|
|
266
|
+
|
|
267
|
+
/* Returns true if the contents of the contents property of the layer
|
|
268
|
+
* will be implicitly flipped when rendered in relation to the local
|
|
269
|
+
* coordinate space (e.g. if there are an odd number of layers with
|
|
270
|
+
* flippedGeometry=YES from the receiver up to and including the
|
|
271
|
+
* implicit container of the root layer). Subclasses should not attempt
|
|
272
|
+
* to redefine this method. When this method returns true the
|
|
273
|
+
* CGContextRef object passed to -drawInContext: by the default
|
|
274
|
+
* -display method will have been y- flipped (and rectangles passed to
|
|
275
|
+
* -setNeedsDisplayInRect: will be similarly flipped). */
|
|
276
|
+
|
|
277
|
+
- (BOOL)contentsAreFlipped;
|
|
278
|
+
|
|
279
|
+
/* The receiver's superlayer object. Implicitly changed to match the
|
|
280
|
+
* hierarchy described by the `sublayers' properties. */
|
|
281
|
+
|
|
282
|
+
@property(nullable, readonly) CALayer *superlayer;
|
|
283
|
+
|
|
284
|
+
/* Removes the layer from its superlayer, works both if the receiver is
|
|
285
|
+
* in its superlayer's `sublayers' array or set as its `mask' value. */
|
|
286
|
+
|
|
287
|
+
- (void)removeFromSuperlayer;
|
|
288
|
+
|
|
289
|
+
/* The array of sublayers of this layer. The layers are listed in back
|
|
290
|
+
* to front order. Defaults to nil. When setting the value of the
|
|
291
|
+
* property, any newly added layers must have nil superlayers, otherwise
|
|
292
|
+
* the behavior is undefined. Note that the returned array is not
|
|
293
|
+
* guaranteed to retain its elements. */
|
|
294
|
+
|
|
295
|
+
@property(nullable, copy) NSArray<__kindof CALayer *> *sublayers;
|
|
296
|
+
|
|
297
|
+
/* Add 'layer' to the end of the receiver's sublayers array. If 'layer'
|
|
298
|
+
* already has a superlayer, it will be removed before being added. */
|
|
299
|
+
|
|
300
|
+
- (void)addSublayer:(CALayer *)layer;
|
|
301
|
+
|
|
302
|
+
/* Insert 'layer' at position 'idx' in the receiver's sublayers array.
|
|
303
|
+
* If 'layer' already has a superlayer, it will be removed before being
|
|
304
|
+
* inserted. */
|
|
305
|
+
|
|
306
|
+
- (void)insertSublayer:(CALayer *)layer atIndex:(unsigned)idx;
|
|
307
|
+
|
|
308
|
+
/* Insert 'layer' either above or below the specified layer in the
|
|
309
|
+
* receiver's sublayers array. If 'layer' already has a superlayer, it
|
|
310
|
+
* will be removed before being inserted. */
|
|
311
|
+
|
|
312
|
+
- (void)insertSublayer:(CALayer *)layer below:(nullable CALayer *)sibling;
|
|
313
|
+
- (void)insertSublayer:(CALayer *)layer above:(nullable CALayer *)sibling;
|
|
314
|
+
|
|
315
|
+
/* Remove 'oldLayer' from the sublayers array of the receiver and insert
|
|
316
|
+
* 'newLayer' if non-nil in its position. If the superlayer of 'oldLayer'
|
|
317
|
+
* is not the receiver, the behavior is undefined. */
|
|
318
|
+
|
|
319
|
+
- (void)replaceSublayer:(CALayer *)oldLayer with:(CALayer *)newLayer;
|
|
320
|
+
|
|
321
|
+
/* A transform applied to each member of the `sublayers' array while
|
|
322
|
+
* rendering its contents into the receiver's output. Typically used as
|
|
323
|
+
* the projection matrix to add perspective and other viewing effects
|
|
324
|
+
* into the model. Defaults to identity. Animatable. */
|
|
325
|
+
|
|
326
|
+
@property CATransform3D sublayerTransform;
|
|
327
|
+
|
|
328
|
+
/* A layer whose alpha channel is used as a mask to select between the
|
|
329
|
+
* layer's background and the result of compositing the layer's
|
|
330
|
+
* contents with its filtered background. Defaults to nil. When used as
|
|
331
|
+
* a mask the layer's `compositingFilter' and `backgroundFilters'
|
|
332
|
+
* properties are ignored. When setting the mask to a new layer, the
|
|
333
|
+
* new layer must have a nil superlayer, otherwise the behavior is
|
|
334
|
+
* undefined. Nested masks (mask layers with their own masks) are
|
|
335
|
+
* unsupported. */
|
|
336
|
+
|
|
337
|
+
@property(nullable, strong) __kindof CALayer *mask;
|
|
338
|
+
|
|
339
|
+
/* When true an implicit mask matching the layer bounds is applied to
|
|
340
|
+
* the layer (including the effects of the `cornerRadius' property). If
|
|
341
|
+
* both `mask' and `masksToBounds' are non-nil the two masks are
|
|
342
|
+
* multiplied to get the actual mask values. Defaults to NO.
|
|
343
|
+
* Animatable. */
|
|
344
|
+
|
|
345
|
+
@property BOOL masksToBounds;
|
|
346
|
+
|
|
347
|
+
/** Mapping between layer coordinate and time spaces. **/
|
|
348
|
+
|
|
349
|
+
- (CGPoint)convertPoint:(CGPoint)p fromLayer:(nullable CALayer *)l;
|
|
350
|
+
- (CGPoint)convertPoint:(CGPoint)p toLayer:(nullable CALayer *)l;
|
|
351
|
+
- (CGRect)convertRect:(CGRect)r fromLayer:(nullable CALayer *)l;
|
|
352
|
+
- (CGRect)convertRect:(CGRect)r toLayer:(nullable CALayer *)l;
|
|
353
|
+
|
|
354
|
+
- (CFTimeInterval)convertTime:(CFTimeInterval)t fromLayer:(nullable CALayer *)l;
|
|
355
|
+
- (CFTimeInterval)convertTime:(CFTimeInterval)t toLayer:(nullable CALayer *)l;
|
|
356
|
+
|
|
357
|
+
/** Hit testing methods. **/
|
|
358
|
+
|
|
359
|
+
/* Returns the farthest descendant of the layer containing point 'p'.
|
|
360
|
+
* Siblings are searched in top-to-bottom order. 'p' is defined to be
|
|
361
|
+
* in the coordinate space of the receiver's nearest ancestor that
|
|
362
|
+
* isn't a CATransformLayer (transform layers don't have a 2D
|
|
363
|
+
* coordinate space in which the point could be specified). */
|
|
364
|
+
|
|
365
|
+
- (nullable __kindof CALayer *)hitTest:(CGPoint)p;
|
|
366
|
+
|
|
367
|
+
/* Returns true if the bounds of the layer contains point 'p'. */
|
|
368
|
+
|
|
369
|
+
- (BOOL)containsPoint:(CGPoint)p;
|
|
370
|
+
|
|
371
|
+
/** Layer content properties and methods. **/
|
|
372
|
+
|
|
373
|
+
/* An object providing the contents of the layer, typically a CGImageRef
|
|
374
|
+
* or an IOSurfaceRef, but may be something else. (For example, NSImage
|
|
375
|
+
* objects are supported on Mac OS X 10.6 and later.) Default value is nil.
|
|
376
|
+
* Animatable. */
|
|
377
|
+
|
|
378
|
+
@property(nullable, strong) id contents;
|
|
379
|
+
|
|
380
|
+
/* A rectangle in normalized image coordinates defining the
|
|
381
|
+
* subrectangle of the `contents' property that will be drawn into the
|
|
382
|
+
* layer. If pixels outside the unit rectangles are requested, the edge
|
|
383
|
+
* pixels of the contents image will be extended outwards. If an empty
|
|
384
|
+
* rectangle is provided, the results are undefined. Defaults to the
|
|
385
|
+
* unit rectangle [0 0 1 1]. Animatable. */
|
|
386
|
+
|
|
387
|
+
@property CGRect contentsRect;
|
|
388
|
+
|
|
389
|
+
/* A string defining how the contents of the layer is mapped into its
|
|
390
|
+
* bounds rect. Options are `center', `top', `bottom', `left',
|
|
391
|
+
* `right', `topLeft', `topRight', `bottomLeft', `bottomRight',
|
|
392
|
+
* `resize', `resizeAspect', `resizeAspectFill'. The default value is
|
|
393
|
+
* `resize'. Note that "bottom" always means "Minimum Y" and "top"
|
|
394
|
+
* always means "Maximum Y". */
|
|
395
|
+
|
|
396
|
+
@property(copy) CALayerContentsGravity contentsGravity;
|
|
397
|
+
|
|
398
|
+
/* Defines the scale factor applied to the contents of the layer. If
|
|
399
|
+
* the physical size of the contents is '(w, h)' then the logical size
|
|
400
|
+
* (i.e. for contentsGravity calculations) is defined as '(w /
|
|
401
|
+
* contentsScale, h / contentsScale)'. Applies to both images provided
|
|
402
|
+
* explicitly and content provided via -drawInContext: (i.e. if
|
|
403
|
+
* contentsScale is two -drawInContext: will draw into a buffer twice
|
|
404
|
+
* as large as the layer bounds). Defaults to one. Animatable. */
|
|
405
|
+
|
|
406
|
+
@property CGFloat contentsScale
|
|
407
|
+
API_AVAILABLE(macos(10.7), ios(4.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
408
|
+
|
|
409
|
+
/* A rectangle in normalized image coordinates defining the scaled
|
|
410
|
+
* center part of the `contents' image.
|
|
411
|
+
*
|
|
412
|
+
* When an image is resized due to its `contentsGravity' property its
|
|
413
|
+
* center part implicitly defines the 3x3 grid that controls how the
|
|
414
|
+
* image is scaled to its drawn size. The center part is stretched in
|
|
415
|
+
* both dimensions; the top and bottom parts are only stretched
|
|
416
|
+
* horizontally; the left and right parts are only stretched
|
|
417
|
+
* vertically; the four corner parts are not stretched at all. (This is
|
|
418
|
+
* often called "9-slice scaling".)
|
|
419
|
+
*
|
|
420
|
+
* The rectangle is interpreted after the effects of the `contentsRect'
|
|
421
|
+
* property have been applied. It defaults to the unit rectangle [0 0 1
|
|
422
|
+
* 1] meaning that the entire image is scaled. As a special case, if
|
|
423
|
+
* the width or height is zero, it is implicitly adjusted to the width
|
|
424
|
+
* or height of a single source pixel centered at that position. If the
|
|
425
|
+
* rectangle extends outside the [0 0 1 1] unit rectangle the result is
|
|
426
|
+
* undefined. Animatable. */
|
|
427
|
+
|
|
428
|
+
@property CGRect contentsCenter;
|
|
429
|
+
|
|
430
|
+
/* A hint for the desired storage format of the layer contents provided by
|
|
431
|
+
* -drawLayerInContext. Defaults to kCAContentsFormatRGBA8Uint. Note that this
|
|
432
|
+
* does not affect the interpretation of the `contents' property directly. */
|
|
433
|
+
|
|
434
|
+
@property(copy) CALayerContentsFormat contentsFormat
|
|
435
|
+
API_AVAILABLE(macos(10.12), ios(10.0), tvos(10.0)) API_UNAVAILABLE(watchos);
|
|
436
|
+
|
|
437
|
+
/* If YES, contents of the layer can be displayed up to its NSScreen's
|
|
438
|
+
* maximumExtendedDynamicRangeColorComponentValue or UIScreen's
|
|
439
|
+
* currentEDRHeadroom. If NO, contents are clipped or tonemapped to 1.0 (SDR).
|
|
440
|
+
* `contents` with a CGColorSpaceRef conforming to ITU-R 2100
|
|
441
|
+
* (CGColorSpaceUsesITUR_2100TF) will be tonemapped. This only effects the
|
|
442
|
+
* tonemapping of the receiving layer.
|
|
443
|
+
|
|
444
|
+
* Setting this value to YES may have a significant impact on power consumption
|
|
445
|
+
* and therefore should only be set when displaying EDR contents.
|
|
446
|
+
* It is recommended to migrate to 'preferredDynamicRange', which requires that
|
|
447
|
+
* the layer contain a CGColor or `contents' with headroom tagging greater
|
|
448
|
+
* than 1.0 in order to activate EDR. If 'preferredDynamicRange' is set to a
|
|
449
|
+
* value other than 'CADynamicRangeStandard', contents will not be tone mapped
|
|
450
|
+
* to SDR, even if 'wantsExtendedDynamicRangeContent' is set to NO.
|
|
451
|
+
*
|
|
452
|
+
* The default value is NO.
|
|
453
|
+
*/
|
|
454
|
+
|
|
455
|
+
@property BOOL wantsExtendedDynamicRangeContent
|
|
456
|
+
API_DEPRECATED("Use preferredDynamicRange instead", macos(14.0, 26.0), ios(17.0, 26.0))
|
|
457
|
+
API_UNAVAILABLE(tvos, watchos);
|
|
458
|
+
|
|
459
|
+
/* Options that control when to tone map CALayer contents and
|
|
460
|
+
CAMetalLayer drawables. */
|
|
461
|
+
@property(copy) CAToneMapMode toneMapMode
|
|
462
|
+
API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), visionos(2.0)) API_UNAVAILABLE(watchos);
|
|
463
|
+
|
|
464
|
+
/* Controls the dynamic range used to render CGColors and `contents' of the
|
|
465
|
+
* layer that have headroom tagging greater thah 1.0. This only effects the
|
|
466
|
+
* tonemapping of the receiving layer (not ancestors or descendants). Defaults
|
|
467
|
+
* to CADynamicRangeStandard. */
|
|
468
|
+
|
|
469
|
+
@property(copy) CADynamicRange preferredDynamicRange
|
|
470
|
+
API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), visionos(26.0)) API_UNAVAILABLE(watchos);
|
|
471
|
+
|
|
472
|
+
/* The amount of EDR headroom used by `contents' of the layer. Setting this
|
|
473
|
+
* property can help reduce the power impact when using a limited amount of
|
|
474
|
+
* dynamic range. If the `contents' is a CGImageRef with content headroom, or
|
|
475
|
+
* an IOSurfaceRef with kIOSurfaceContentHeadroom, this property does not need
|
|
476
|
+
* to be set. CAMetalLayers can use this value to define how much headroom is
|
|
477
|
+
* needed by their MTLDrawables. Defaults to 0, which means untagged. Values
|
|
478
|
+
* greater than 0, and less than 1.0 are undefined. */
|
|
479
|
+
|
|
480
|
+
@property CGFloat contentsHeadroom
|
|
481
|
+
API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), visionos(26.0)) API_UNAVAILABLE(watchos);
|
|
482
|
+
|
|
483
|
+
/* If YES, allows the layer's content to render at arbitrary integer scales
|
|
484
|
+
to preserve high-quality vector graphics. This only affects content drawn
|
|
485
|
+
through -drawLayerInContext or -drawInContext. Changing this value will
|
|
486
|
+
trigger an explicit `setNeedsDisplay`. The default value is NO. */
|
|
487
|
+
|
|
488
|
+
@property BOOL wantsDynamicContentScaling
|
|
489
|
+
API_AVAILABLE(visionos(1.0)) API_UNAVAILABLE(macos, ios, tvos, watchos);
|
|
490
|
+
|
|
491
|
+
/* The filter types to use when rendering the `contents' property of
|
|
492
|
+
* the layer. The minification filter is used when to reduce the size
|
|
493
|
+
* of image data, the magnification filter to increase the size of
|
|
494
|
+
* image data. Currently the allowed values are `nearest' and `linear'.
|
|
495
|
+
* Both properties default to `linear'. */
|
|
496
|
+
|
|
497
|
+
@property(copy) CALayerContentsFilter minificationFilter;
|
|
498
|
+
@property(copy) CALayerContentsFilter magnificationFilter;
|
|
499
|
+
|
|
500
|
+
/* The bias factor added when determining which levels of detail to use
|
|
501
|
+
* when minifying using trilinear filtering. The default value is 0.
|
|
502
|
+
* Animatable. */
|
|
503
|
+
|
|
504
|
+
@property float minificationFilterBias;
|
|
505
|
+
|
|
506
|
+
/* A hint marking that the layer contents provided by -drawInContext:
|
|
507
|
+
* is completely opaque. Defaults to NO. Note that this does not affect
|
|
508
|
+
* the interpretation of the `contents' property directly. */
|
|
509
|
+
|
|
510
|
+
@property(getter=isOpaque) BOOL opaque;
|
|
511
|
+
|
|
512
|
+
/* Reload the content of this layer. Calls the -drawInContext: method
|
|
513
|
+
* then updates the `contents' property of the layer. Typically this is
|
|
514
|
+
* not called directly. */
|
|
515
|
+
|
|
516
|
+
- (void)display;
|
|
517
|
+
|
|
518
|
+
/* Marks that -display needs to be called before the layer is next
|
|
519
|
+
* committed. If a region is specified, only that region of the layer
|
|
520
|
+
* is invalidated. */
|
|
521
|
+
|
|
522
|
+
- (void)setNeedsDisplay;
|
|
523
|
+
- (void)setNeedsDisplayInRect:(CGRect)r;
|
|
524
|
+
|
|
525
|
+
/* Returns true when the layer is marked as needing redrawing. */
|
|
526
|
+
|
|
527
|
+
- (BOOL)needsDisplay;
|
|
528
|
+
|
|
529
|
+
/* Call -display if receiver is marked as needing redrawing. */
|
|
530
|
+
|
|
531
|
+
- (void)displayIfNeeded;
|
|
532
|
+
|
|
533
|
+
/* When true -setNeedsDisplay will automatically be called when the
|
|
534
|
+
* bounds of the layer changes. Default value is NO. */
|
|
535
|
+
|
|
536
|
+
@property BOOL needsDisplayOnBoundsChange;
|
|
537
|
+
|
|
538
|
+
/* When true, the CGContext object passed to the -drawInContext: method
|
|
539
|
+
* may queue the drawing commands submitted to it, such that they will
|
|
540
|
+
* be executed later (i.e. asynchronously to the execution of the
|
|
541
|
+
* -drawInContext: method). This may allow the layer to complete its
|
|
542
|
+
* drawing operations sooner than when executing synchronously. The
|
|
543
|
+
* default value is NO. */
|
|
544
|
+
|
|
545
|
+
@property BOOL drawsAsynchronously
|
|
546
|
+
API_AVAILABLE(macos(10.8), ios(6.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
547
|
+
|
|
548
|
+
/* Called via the -display method when the `contents' property is being
|
|
549
|
+
* updated. Default implementation does nothing. The context may be
|
|
550
|
+
* clipped to protect valid layer content. Subclasses that wish to find
|
|
551
|
+
* the actual region to draw can call CGContextGetClipBoundingBox(). */
|
|
552
|
+
|
|
553
|
+
- (void)drawInContext:(CGContextRef)ctx;
|
|
554
|
+
|
|
555
|
+
/** Rendering properties and methods. **/
|
|
556
|
+
|
|
557
|
+
/* Renders the receiver and its sublayers into 'ctx'. This method
|
|
558
|
+
* renders directly from the layer tree. Renders in the coordinate space
|
|
559
|
+
* of the layer.
|
|
560
|
+
*
|
|
561
|
+
* WARNING: currently this method does not implement the full
|
|
562
|
+
* CoreAnimation composition model, use with caution. */
|
|
563
|
+
|
|
564
|
+
- (void)renderInContext:(CGContextRef)ctx;
|
|
565
|
+
|
|
566
|
+
/* Defines how the edges of the layer are rasterized. For each of the
|
|
567
|
+
* four edges (left, right, bottom, top) if the corresponding bit is
|
|
568
|
+
* set the edge will be antialiased. Typically this property is used to
|
|
569
|
+
* disable antialiasing for edges that abut edges of other layers, to
|
|
570
|
+
* eliminate the seams that would otherwise occur. The default value is
|
|
571
|
+
* for all edges to be antialiased. */
|
|
572
|
+
|
|
573
|
+
@property CAEdgeAntialiasingMask edgeAntialiasingMask;
|
|
574
|
+
|
|
575
|
+
/* When true this layer is allowed to antialias its edges, as requested
|
|
576
|
+
* by the value of the edgeAntialiasingMask property.
|
|
577
|
+
*
|
|
578
|
+
* The default value is read from the CALayerAllowsEdgeAntialiasing
|
|
579
|
+
* property in the main bundle's Info.plist. On iOS, if that property
|
|
580
|
+
* is not found, the UIViewEdgeAntialiasing property will be used
|
|
581
|
+
* instead. If no value is found in the Info.plist the default value is
|
|
582
|
+
* YES on macOS and NO on iOS. */
|
|
583
|
+
|
|
584
|
+
@property BOOL allowsEdgeAntialiasing
|
|
585
|
+
API_AVAILABLE(macos(10.10), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
586
|
+
|
|
587
|
+
/* The background color of the layer. Default value is nil. Colors
|
|
588
|
+
* created from tiled patterns are supported. Animatable. */
|
|
589
|
+
|
|
590
|
+
@property(nullable) CGColorRef backgroundColor;
|
|
591
|
+
|
|
592
|
+
/* When positive, the background of the layer will be drawn with
|
|
593
|
+
* rounded corners. Also effects the mask generated by the
|
|
594
|
+
* `masksToBounds' property. Defaults to zero. Animatable. */
|
|
595
|
+
|
|
596
|
+
@property CGFloat cornerRadius;
|
|
597
|
+
|
|
598
|
+
/* Defines which of the four corners receives the masking when using
|
|
599
|
+
* `cornerRadius' property. Defaults to all four corners. */
|
|
600
|
+
|
|
601
|
+
@property CACornerMask maskedCorners
|
|
602
|
+
API_AVAILABLE(macos(10.13), ios(11.0), tvos(11.0)) API_UNAVAILABLE(watchos);
|
|
603
|
+
|
|
604
|
+
/* Defines the curve used for rendering the rounded corners of the layer.
|
|
605
|
+
* Defaults to 'kCACornerCurveCircular'. */
|
|
606
|
+
|
|
607
|
+
@property(copy) CALayerCornerCurve cornerCurve
|
|
608
|
+
API_AVAILABLE(macos(10.15), ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
|
|
609
|
+
|
|
610
|
+
/* Expansion scale factor applied to the rounded corner bounding box size
|
|
611
|
+
* when specific corner curve is used. */
|
|
612
|
+
|
|
613
|
+
+ (CGFloat)cornerCurveExpansionFactor:(CALayerCornerCurve)curve
|
|
614
|
+
API_AVAILABLE(macos(10.15), ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
|
|
615
|
+
|
|
616
|
+
/* The width of the layer's border, inset from the layer bounds. The
|
|
617
|
+
* border is composited above the layer's content and sublayers and
|
|
618
|
+
* includes the effects of the `cornerRadius' property. Defaults to
|
|
619
|
+
* zero. Animatable. */
|
|
620
|
+
|
|
621
|
+
@property CGFloat borderWidth;
|
|
622
|
+
|
|
623
|
+
/* The color of the layer's border. Defaults to opaque black. Colors
|
|
624
|
+
* created from tiled patterns are supported. Animatable. */
|
|
625
|
+
|
|
626
|
+
@property(nullable) CGColorRef borderColor;
|
|
627
|
+
|
|
628
|
+
/* The opacity of the layer, as a value between zero and one. Defaults
|
|
629
|
+
* to one. Specifying a value outside the [0,1] range will give undefined
|
|
630
|
+
* results. Animatable. */
|
|
631
|
+
|
|
632
|
+
@property float opacity;
|
|
633
|
+
|
|
634
|
+
/* When true, and the layer's opacity property is less than one, the
|
|
635
|
+
* layer is allowed to composite itself as a group separate from its
|
|
636
|
+
* parent. This gives the correct results when the layer contains
|
|
637
|
+
* multiple opaque components, but may reduce performance.
|
|
638
|
+
*
|
|
639
|
+
* The default value is read from the CALayerAllowsGroupOpacity
|
|
640
|
+
* property in the main bundle's Info.plist. On iOS, if that property
|
|
641
|
+
* is not found, the UIViewGroupOpacity property will be used instead.
|
|
642
|
+
* If no value is found in the Info.plist the default value is YES on
|
|
643
|
+
* macOS and iOS applications linked against the iOS 7 SDK or later,
|
|
644
|
+
* and NO for iOS applications linked against an earlier SDK. */
|
|
645
|
+
|
|
646
|
+
@property BOOL allowsGroupOpacity
|
|
647
|
+
API_AVAILABLE(macos(10.10), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
648
|
+
|
|
649
|
+
/* A filter object used to composite the layer with its (possibly
|
|
650
|
+
* filtered) background. Default value is nil, which implies source-
|
|
651
|
+
* over compositing. Animatable.
|
|
652
|
+
*
|
|
653
|
+
* Note that if the inputs of the filter are modified directly after
|
|
654
|
+
* the filter is attached to a layer, the behavior is undefined. The
|
|
655
|
+
* filter must either be reattached to the layer, or filter properties
|
|
656
|
+
* should be modified by calling -setValue:forKeyPath: on each layer
|
|
657
|
+
* that the filter is attached to. (This also applies to the `filters'
|
|
658
|
+
* and `backgroundFilters' properties.) */
|
|
659
|
+
|
|
660
|
+
@property(nullable, strong) id compositingFilter;
|
|
661
|
+
|
|
662
|
+
/* An array of filters that will be applied to the contents of the
|
|
663
|
+
* layer and its sublayers. Defaults to nil. Animatable. */
|
|
664
|
+
|
|
665
|
+
@property(nullable, copy) NSArray *filters;
|
|
666
|
+
|
|
667
|
+
/* An array of filters that are applied to the background of the layer.
|
|
668
|
+
* The root layer ignores this property. Animatable. */
|
|
669
|
+
|
|
670
|
+
@property(nullable, copy) NSArray *backgroundFilters;
|
|
671
|
+
|
|
672
|
+
/* When true, the layer is rendered as a bitmap in its local coordinate
|
|
673
|
+
* space ("rasterized"), then the bitmap is composited into the
|
|
674
|
+
* destination (with the minificationFilter and magnificationFilter
|
|
675
|
+
* properties of the layer applied if the bitmap needs scaling).
|
|
676
|
+
* Rasterization occurs after the layer's filters and shadow effects
|
|
677
|
+
* are applied, but before the opacity modulation. As an implementation
|
|
678
|
+
* detail the rendering engine may attempt to cache and reuse the
|
|
679
|
+
* bitmap from one frame to the next. (Whether it does or not will have
|
|
680
|
+
* no affect on the rendered output.)
|
|
681
|
+
*
|
|
682
|
+
* When false the layer is composited directly into the destination
|
|
683
|
+
* whenever possible (however, certain features of the compositing
|
|
684
|
+
* model may force rasterization, e.g. adding filters).
|
|
685
|
+
*
|
|
686
|
+
* Defaults to NO. Animatable. */
|
|
687
|
+
|
|
688
|
+
@property BOOL shouldRasterize;
|
|
689
|
+
|
|
690
|
+
/* The scale at which the layer will be rasterized (when the
|
|
691
|
+
* shouldRasterize property has been set to YES) relative to the
|
|
692
|
+
* coordinate space of the layer. Defaults to one. Animatable. */
|
|
693
|
+
|
|
694
|
+
@property CGFloat rasterizationScale;
|
|
695
|
+
|
|
696
|
+
/** Shadow properties. **/
|
|
697
|
+
|
|
698
|
+
/* The color of the shadow. Defaults to opaque black. Colors created
|
|
699
|
+
* from patterns are currently NOT supported. Animatable. */
|
|
700
|
+
|
|
701
|
+
@property(nullable) CGColorRef shadowColor;
|
|
702
|
+
|
|
703
|
+
/* The opacity of the shadow. Defaults to 0. Specifying a value outside the
|
|
704
|
+
* [0,1] range will give undefined results. Animatable. */
|
|
705
|
+
|
|
706
|
+
@property float shadowOpacity;
|
|
707
|
+
|
|
708
|
+
/* The shadow offset. Defaults to (0, -3). Animatable. */
|
|
709
|
+
|
|
710
|
+
@property CGSize shadowOffset;
|
|
711
|
+
|
|
712
|
+
/* The blur radius used to create the shadow. Defaults to 3. Animatable. */
|
|
713
|
+
|
|
714
|
+
@property CGFloat shadowRadius;
|
|
715
|
+
|
|
716
|
+
/* When non-null this path defines the outline used to construct the
|
|
717
|
+
* layer's shadow instead of using the layer's composited alpha
|
|
718
|
+
* channel. The path is rendered using the non-zero winding rule.
|
|
719
|
+
* Specifying the path explicitly using this property will usually
|
|
720
|
+
* improve rendering performance, as will sharing the same path
|
|
721
|
+
* reference across multiple layers. Upon assignment the path is copied.
|
|
722
|
+
* Defaults to null. Animatable. */
|
|
723
|
+
|
|
724
|
+
@property(nullable) CGPathRef shadowPath;
|
|
725
|
+
|
|
726
|
+
/** Layout methods. **/
|
|
727
|
+
|
|
728
|
+
/* A bitmask defining how the layer is resized when the bounds of its
|
|
729
|
+
* superlayer changes. See the CAAutoresizingMask enum for the bit
|
|
730
|
+
* definitions. Default value is zero. */
|
|
731
|
+
|
|
732
|
+
@property CAAutoresizingMask autoresizingMask
|
|
733
|
+
API_AVAILABLE(macCatalyst(13.1)) API_UNAVAILABLE(ios, tvos, watchos, visionos);
|
|
734
|
+
|
|
735
|
+
/* The object responsible for assigning frame rects to sublayers,
|
|
736
|
+
* should implement methods from the CALayoutManager informal protocol.
|
|
737
|
+
* When nil (the default value) only the autoresizing style of layout
|
|
738
|
+
* is done (unless a subclass overrides -layoutSublayers). */
|
|
739
|
+
|
|
740
|
+
@property(nullable, strong) id <CALayoutManager> layoutManager
|
|
741
|
+
API_AVAILABLE(macCatalyst(13.1)) API_UNAVAILABLE(ios, tvos, watchos, visionos);
|
|
742
|
+
|
|
743
|
+
/* Returns the preferred frame size of the layer in the coordinate
|
|
744
|
+
* space of the superlayer. The default implementation calls the layout
|
|
745
|
+
* manager if one exists and it implements the -preferredSizeOfLayer:
|
|
746
|
+
* method, otherwise returns the size of the bounds rect mapped into
|
|
747
|
+
* the superlayer. */
|
|
748
|
+
|
|
749
|
+
- (CGSize)preferredFrameSize;
|
|
750
|
+
|
|
751
|
+
/* Marks that -layoutSublayers needs to be invoked on the receiver
|
|
752
|
+
* before the next update. If the receiver's layout manager implements
|
|
753
|
+
* the -invalidateLayoutOfLayer: method it will be called.
|
|
754
|
+
*
|
|
755
|
+
* This method is automatically invoked on a layer whenever its
|
|
756
|
+
* `sublayers' or `layoutManager' property is modified, and is invoked
|
|
757
|
+
* on the layer and its superlayer whenever its `bounds' or `transform'
|
|
758
|
+
* properties are modified. Implicit calls to -setNeedsLayout are
|
|
759
|
+
* skipped if the layer is currently executing its -layoutSublayers
|
|
760
|
+
* method. */
|
|
761
|
+
|
|
762
|
+
- (void)setNeedsLayout;
|
|
763
|
+
|
|
764
|
+
/* Returns true when the receiver is marked as needing layout. */
|
|
765
|
+
|
|
766
|
+
- (BOOL)needsLayout;
|
|
767
|
+
|
|
768
|
+
/* Traverse upwards from the layer while the superlayer requires layout.
|
|
769
|
+
* Then layout the entire tree beneath that ancestor. */
|
|
770
|
+
|
|
771
|
+
- (void)layoutIfNeeded;
|
|
772
|
+
|
|
773
|
+
/* Called when the layer requires layout. The default implementation
|
|
774
|
+
* calls the layout manager if one exists and it implements the
|
|
775
|
+
* -layoutSublayersOfLayer: method. Subclasses can override this to
|
|
776
|
+
* provide their own layout algorithm, which should set the frame of
|
|
777
|
+
* each sublayer. */
|
|
778
|
+
|
|
779
|
+
- (void)layoutSublayers;
|
|
780
|
+
|
|
781
|
+
/* NSView-style springs and struts layout. -resizeSublayersWithOldSize:
|
|
782
|
+
* is called when the layer's bounds rect is changed. It calls
|
|
783
|
+
* -resizeWithOldSuperlayerSize: to resize the sublayer's frame to
|
|
784
|
+
* match the new superlayer bounds based on the sublayer's autoresizing
|
|
785
|
+
* mask. */
|
|
786
|
+
|
|
787
|
+
- (void)resizeSublayersWithOldSize:(CGSize)size
|
|
788
|
+
API_AVAILABLE(macCatalyst(13.1)) API_UNAVAILABLE(ios, tvos, watchos, visionos);
|
|
789
|
+
|
|
790
|
+
- (void)resizeWithOldSuperlayerSize:(CGSize)size
|
|
791
|
+
API_AVAILABLE(macCatalyst(13.1)) API_UNAVAILABLE(ios, tvos, watchos, visionos);
|
|
792
|
+
|
|
793
|
+
/** Action methods. **/
|
|
794
|
+
|
|
795
|
+
/* An "action" is an object that responds to an "event" via the
|
|
796
|
+
* CAAction protocol (see below). Events are named using standard
|
|
797
|
+
* dot-separated key paths. Each layer defines a mapping from event key
|
|
798
|
+
* paths to action objects. Events are posted by looking up the action
|
|
799
|
+
* object associated with the key path and sending it the method
|
|
800
|
+
* defined by the CAAction protocol.
|
|
801
|
+
*
|
|
802
|
+
* When an action object is invoked it receives three parameters: the
|
|
803
|
+
* key path naming the event, the object on which the event happened
|
|
804
|
+
* (i.e. the layer), and optionally a dictionary of named arguments
|
|
805
|
+
* specific to each event.
|
|
806
|
+
*
|
|
807
|
+
* To provide implicit animations for layer properties, an event with
|
|
808
|
+
* the same name as each property is posted whenever the value of the
|
|
809
|
+
* property is modified. A suitable CAAnimation object is associated by
|
|
810
|
+
* default with each implicit event (CAAnimation implements the action
|
|
811
|
+
* protocol).
|
|
812
|
+
*
|
|
813
|
+
* The layer class also defines the following events that are not
|
|
814
|
+
* linked directly to properties:
|
|
815
|
+
*
|
|
816
|
+
* onOrderIn
|
|
817
|
+
* Invoked when the layer is made visible, i.e. either its
|
|
818
|
+
* superlayer becomes visible, or it's added as a sublayer of a
|
|
819
|
+
* visible layer
|
|
820
|
+
*
|
|
821
|
+
* onOrderOut
|
|
822
|
+
* Invoked when the layer becomes non-visible. */
|
|
823
|
+
|
|
824
|
+
/* Returns the default action object associated with the event named by
|
|
825
|
+
* the string 'event'. The default implementation returns a suitable
|
|
826
|
+
* animation object for events posted by animatable properties, nil
|
|
827
|
+
* otherwise. */
|
|
828
|
+
|
|
829
|
+
+ (nullable id<CAAction>)defaultActionForKey:(NSString *)event;
|
|
830
|
+
|
|
831
|
+
/* Returns the action object associated with the event named by the
|
|
832
|
+
* string 'event'. The default implementation searches for an action
|
|
833
|
+
* object in the following places:
|
|
834
|
+
*
|
|
835
|
+
* 1. if defined, call the delegate method -actionForLayer:forKey:
|
|
836
|
+
* 2. look in the layer's `actions' dictionary
|
|
837
|
+
* 3. look in any `actions' dictionaries in the `style' hierarchy
|
|
838
|
+
* 4. call +defaultActionForKey: on the layer's class
|
|
839
|
+
*
|
|
840
|
+
* If any of these steps results in a non-nil action object, the
|
|
841
|
+
* following steps are ignored. If the final result is an instance of
|
|
842
|
+
* NSNull, it is converted to `nil'. */
|
|
843
|
+
|
|
844
|
+
- (nullable id<CAAction>)actionForKey:(NSString *)event;
|
|
845
|
+
|
|
846
|
+
/* A dictionary mapping keys to objects implementing the CAAction
|
|
847
|
+
* protocol. Default value is nil. */
|
|
848
|
+
|
|
849
|
+
@property(nullable, copy) NSDictionary<NSString *, id<CAAction>> *actions;
|
|
850
|
+
|
|
851
|
+
/** Animation methods. **/
|
|
852
|
+
|
|
853
|
+
/* Attach an animation object to the layer. Typically this is implicitly
|
|
854
|
+
* invoked through an action that is an CAAnimation object.
|
|
855
|
+
*
|
|
856
|
+
* 'key' may be any string such that only one animation per unique key
|
|
857
|
+
* is added per layer. The special key 'transition' is automatically
|
|
858
|
+
* used for transition animations. The nil pointer is also a valid key.
|
|
859
|
+
*
|
|
860
|
+
* If the `duration' property of the animation is zero or negative it
|
|
861
|
+
* is given the default duration, either the value of the
|
|
862
|
+
* `animationDuration' transaction property or .25 seconds otherwise.
|
|
863
|
+
*
|
|
864
|
+
* The animation is copied before being added to the layer, so any
|
|
865
|
+
* subsequent modifications to `anim' will have no affect unless it is
|
|
866
|
+
* added to another layer. */
|
|
867
|
+
|
|
868
|
+
- (void)addAnimation:(CAAnimation *)anim forKey:(nullable NSString *)key;
|
|
869
|
+
|
|
870
|
+
/* Remove all animations attached to the layer. */
|
|
871
|
+
|
|
872
|
+
- (void)removeAllAnimations;
|
|
873
|
+
|
|
874
|
+
/* Remove any animation attached to the layer for 'key'. */
|
|
875
|
+
|
|
876
|
+
- (void)removeAnimationForKey:(NSString *)key;
|
|
877
|
+
|
|
878
|
+
/* Returns an array containing the keys of all animations currently
|
|
879
|
+
* attached to the receiver. The order of the array matches the order
|
|
880
|
+
* in which animations will be applied. */
|
|
881
|
+
|
|
882
|
+
- (nullable NSArray<NSString *> *)animationKeys;
|
|
883
|
+
|
|
884
|
+
/* Returns the animation added to the layer with identifier 'key', or nil
|
|
885
|
+
* if no such animation exists. Attempting to modify any properties of
|
|
886
|
+
* the returned object will result in undefined behavior. */
|
|
887
|
+
|
|
888
|
+
- (nullable __kindof CAAnimation *)animationForKey:(NSString *)key;
|
|
889
|
+
|
|
890
|
+
|
|
891
|
+
/** Miscellaneous properties. **/
|
|
892
|
+
|
|
893
|
+
/* The name of the layer. Used by some layout managers. Defaults to nil. */
|
|
894
|
+
|
|
895
|
+
@property(nullable, copy) NSString *name;
|
|
896
|
+
|
|
897
|
+
/* An object that will receive the CALayer delegate methods defined
|
|
898
|
+
* below (for those that it implements). The value of this property is
|
|
899
|
+
* not retained. Default value is nil. */
|
|
900
|
+
|
|
901
|
+
@property(nullable, weak) id <CALayerDelegate> delegate;
|
|
902
|
+
|
|
903
|
+
/* When non-nil, a dictionary dereferenced to find property values that
|
|
904
|
+
* aren't explicitly defined by the layer. (This dictionary may in turn
|
|
905
|
+
* have a `style' property, forming a hierarchy of default values.)
|
|
906
|
+
* If the style dictionary doesn't define a value for an attribute, the
|
|
907
|
+
* +defaultValueForKey: method is called. Defaults to nil.
|
|
908
|
+
*
|
|
909
|
+
* Note that if the dictionary or any of its ancestors are modified,
|
|
910
|
+
* the values of the layer's properties are undefined until the `style'
|
|
911
|
+
* property is reset. */
|
|
912
|
+
|
|
913
|
+
@property(nullable, copy) NSDictionary *style;
|
|
914
|
+
|
|
915
|
+
@end
|
|
916
|
+
|
|
917
|
+
/** Layout manager protocol. **/
|
|
918
|
+
|
|
919
|
+
API_AVAILABLE(macCatalyst(13.1)) API_UNAVAILABLE(ios, tvos, watchos, visionos)
|
|
920
|
+
@protocol CALayoutManager <NSObject>
|
|
921
|
+
@optional
|
|
922
|
+
|
|
923
|
+
/* Called when the preferred size of 'layer' may have changed. The
|
|
924
|
+
* receiver is responsible for recomputing the preferred size and
|
|
925
|
+
* returning it. */
|
|
926
|
+
|
|
927
|
+
- (CGSize)preferredSizeOfLayer:(CALayer *)layer;
|
|
928
|
+
|
|
929
|
+
/* Called when the preferred size of 'layer' may have changed. The
|
|
930
|
+
* receiver should invalidate any cached state. */
|
|
931
|
+
|
|
932
|
+
- (void)invalidateLayoutOfLayer:(CALayer *)layer;
|
|
933
|
+
|
|
934
|
+
/* Called when the sublayers of 'layer' may need rearranging (e.g. if
|
|
935
|
+
* something changed size). The receiver is responsible for changing
|
|
936
|
+
* the frame of each sublayer that needs a new layout. */
|
|
937
|
+
|
|
938
|
+
- (void)layoutSublayersOfLayer:(CALayer *)layer;
|
|
939
|
+
|
|
940
|
+
@end
|
|
941
|
+
|
|
942
|
+
/** Action (event handler) protocol. **/
|
|
943
|
+
|
|
944
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos)
|
|
945
|
+
@protocol CAAction
|
|
946
|
+
|
|
947
|
+
/* Called to trigger the event named 'path' on the receiver. The object
|
|
948
|
+
* (e.g. the layer) on which the event happened is 'anObject'. The
|
|
949
|
+
* arguments dictionary may be nil, if non-nil it carries parameters
|
|
950
|
+
* associated with the event. */
|
|
951
|
+
|
|
952
|
+
- (void)runActionForKey:(NSString *)event object:(id)anObject
|
|
953
|
+
arguments:(nullable NSDictionary *)dict;
|
|
954
|
+
|
|
955
|
+
@end
|
|
956
|
+
|
|
957
|
+
/** NSNull protocol conformance. **/
|
|
958
|
+
|
|
959
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos)
|
|
960
|
+
@interface NSNull (CAActionAdditions) <CAAction>
|
|
961
|
+
|
|
962
|
+
@end
|
|
963
|
+
|
|
964
|
+
/** Delegate methods. **/
|
|
965
|
+
|
|
966
|
+
API_AVAILABLE(macos(10.12), ios(10.0), tvos(10.0)) API_UNAVAILABLE(watchos)
|
|
967
|
+
@protocol CALayerDelegate <NSObject>
|
|
968
|
+
@optional
|
|
969
|
+
|
|
970
|
+
/* If defined, called by the default implementation of the -display
|
|
971
|
+
* method, in which case it should implement the entire display
|
|
972
|
+
* process (typically by setting the `contents' property). */
|
|
973
|
+
|
|
974
|
+
- (void)displayLayer:(CALayer *)layer;
|
|
975
|
+
|
|
976
|
+
/* If defined, called by the default implementation of -drawInContext: */
|
|
977
|
+
|
|
978
|
+
- (void)drawLayer:(CALayer *)layer inContext:(CGContextRef)ctx;
|
|
979
|
+
|
|
980
|
+
/* If defined, called by the default implementation of the -display method.
|
|
981
|
+
* Allows the delegate to configure any layer state affecting contents prior
|
|
982
|
+
* to -drawLayer:InContext: such as `contentsFormat' and `opaque'. It will not
|
|
983
|
+
* be called if the delegate implements -displayLayer. */
|
|
984
|
+
|
|
985
|
+
- (void)layerWillDraw:(CALayer *)layer
|
|
986
|
+
API_AVAILABLE(macos(10.12), ios(10.0), tvos(10.0)) API_UNAVAILABLE(watchos);
|
|
987
|
+
|
|
988
|
+
/* Called by the default -layoutSublayers implementation before the layout
|
|
989
|
+
* manager is checked. Note that if the delegate method is invoked, the
|
|
990
|
+
* layout manager will be ignored. */
|
|
991
|
+
|
|
992
|
+
- (void)layoutSublayersOfLayer:(CALayer *)layer;
|
|
993
|
+
|
|
994
|
+
/* If defined, called by the default implementation of the
|
|
995
|
+
* -actionForKey: method. Should return an object implementing the
|
|
996
|
+
* CAAction protocol. May return 'nil' if the delegate doesn't specify
|
|
997
|
+
* a behavior for the current event. Returning the null object (i.e.
|
|
998
|
+
* '[NSNull null]') explicitly forces no further search. (I.e. the
|
|
999
|
+
* +defaultActionForKey: method will not be called.) */
|
|
1000
|
+
|
|
1001
|
+
- (nullable id<CAAction>)actionForLayer:(CALayer *)layer forKey:(NSString *)event;
|
|
1002
|
+
|
|
1003
|
+
@end
|
|
1004
|
+
|
|
1005
|
+
/** Layer `contentsGravity' values. **/
|
|
1006
|
+
|
|
1007
|
+
CA_EXTERN CALayerContentsGravity const kCAGravityCenter
|
|
1008
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1009
|
+
CA_EXTERN CALayerContentsGravity const kCAGravityTop
|
|
1010
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1011
|
+
CA_EXTERN CALayerContentsGravity const kCAGravityBottom
|
|
1012
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1013
|
+
CA_EXTERN CALayerContentsGravity const kCAGravityLeft
|
|
1014
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1015
|
+
CA_EXTERN CALayerContentsGravity const kCAGravityRight
|
|
1016
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1017
|
+
CA_EXTERN CALayerContentsGravity const kCAGravityTopLeft
|
|
1018
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1019
|
+
CA_EXTERN CALayerContentsGravity const kCAGravityTopRight
|
|
1020
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1021
|
+
CA_EXTERN CALayerContentsGravity const kCAGravityBottomLeft
|
|
1022
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1023
|
+
CA_EXTERN CALayerContentsGravity const kCAGravityBottomRight
|
|
1024
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1025
|
+
CA_EXTERN CALayerContentsGravity const kCAGravityResize
|
|
1026
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1027
|
+
CA_EXTERN CALayerContentsGravity const kCAGravityResizeAspect
|
|
1028
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1029
|
+
CA_EXTERN CALayerContentsGravity const kCAGravityResizeAspectFill
|
|
1030
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1031
|
+
|
|
1032
|
+
/** Layer `contentsFormat` values. **/
|
|
1033
|
+
|
|
1034
|
+
CA_EXTERN CALayerContentsFormat const kCAContentsFormatRGBA8Uint /* RGBA UInt8 per component */
|
|
1035
|
+
API_AVAILABLE(macos(10.12), ios(10.0), tvos(10.0)) API_UNAVAILABLE(watchos);
|
|
1036
|
+
CA_EXTERN CALayerContentsFormat const kCAContentsFormatRGBA16Float /* RGBA half-float 16-bit per component */
|
|
1037
|
+
API_AVAILABLE(macos(10.12), ios(10.0), tvos(10.0)) API_UNAVAILABLE(watchos);
|
|
1038
|
+
CA_EXTERN CALayerContentsFormat const kCAContentsFormatGray8Uint /* Grayscale with alpha (if not opaque) UInt8 per component */
|
|
1039
|
+
API_AVAILABLE(macos(10.12), ios(10.0), tvos(10.0)) API_UNAVAILABLE(watchos);
|
|
1040
|
+
CA_EXTERN CALayerContentsFormat const kCAContentsFormatAutomatic NS_SWIFT_NAME (automatic) /* Automatically choose optimal format for CG drawing commands */
|
|
1041
|
+
API_AVAILABLE(macos(10.14), ios(12.0), tvos(12.0)) API_UNAVAILABLE(watchos);
|
|
1042
|
+
|
|
1043
|
+
/** Contents filter names. **/
|
|
1044
|
+
|
|
1045
|
+
CA_EXTERN CALayerContentsFilter const kCAFilterNearest
|
|
1046
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1047
|
+
CA_EXTERN CALayerContentsFilter const kCAFilterLinear
|
|
1048
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1049
|
+
|
|
1050
|
+
/* Trilinear minification filter. Enables mipmap generation. Some
|
|
1051
|
+
* renderers may ignore this, or impose additional restrictions, such
|
|
1052
|
+
* as source images requiring power-of-two dimensions. */
|
|
1053
|
+
|
|
1054
|
+
CA_EXTERN CALayerContentsFilter const kCAFilterTrilinear
|
|
1055
|
+
API_AVAILABLE(macos(10.6), ios(3.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1056
|
+
|
|
1057
|
+
/** Corner curve names. **/
|
|
1058
|
+
|
|
1059
|
+
CA_EXTERN CALayerCornerCurve const kCACornerCurveCircular
|
|
1060
|
+
API_AVAILABLE(macos(10.15), ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
|
|
1061
|
+
CA_EXTERN CALayerCornerCurve const kCACornerCurveContinuous
|
|
1062
|
+
API_AVAILABLE(macos(10.15), ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
|
|
1063
|
+
|
|
1064
|
+
/** Layer event names. **/
|
|
1065
|
+
|
|
1066
|
+
CA_EXTERN NSString * const kCAOnOrderIn
|
|
1067
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1068
|
+
CA_EXTERN NSString * const kCAOnOrderOut
|
|
1069
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1070
|
+
|
|
1071
|
+
/** The animation key used for transitions. **/
|
|
1072
|
+
|
|
1073
|
+
CA_EXTERN NSString * const kCATransition
|
|
1074
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1075
|
+
|
|
1076
|
+
NS_HEADER_AUDIT_END(nullability, sendability)
|
|
1077
|
+
|
|
1078
|
+
#endif
|