跳到正文
cccskills
免费在 GitHub 公开

core-animation

API reference: Core Animation (QuartzCore). Query for CALayer, CAAnimation, CABasicAnimation, CAKeyframeAnimation, CASpringAnimation, CATransaction, CAShapeLayer, CAGradientLayer, CAEmitterLayer, CATransform3D, CADisplayLink.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(22)

  • SKILL.md4.8 KB
  • caanimation.md6.9 KB
  • caanimationgroup.md3.6 KB
  • cabasicanimation.md7.4 KB
  • cadisplaylink.md9.4 KB
  • caemittercell.md7.4 KB
  • caemitterlayer.md5.6 KB
  • cagradientlayer.md3.6 KB
  • cakeyframeanimation.md5.9 KB
  • calayer.md21.8 KB
  • camediatiming.md5.1 KB
  • cametallayer.md9.1 KB
  • capropertyanimation.md4.1 KB
  • careplicatorlayer.md6.0 KB
  • cashapelayer.md5.8 KB
  • caspringanimation.md4.5 KB
  • catextlayer.md4.1 KB
  • catiledlayer.md3.8 KB
  • catransaction.md6.5 KB
  • catransform3d.md4.5 KB
  • catransition.md5.6 KB
  • core-animation-index.md79.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Core Animation Reference

Search these docs to answer questions about Core Animation (the QuartzCore framework). Use this skill when working directly with CALayer, layer-backed UIKit/AppKit views, explicit keyframe or spring animations on layer properties, particle systems, or per-frame callbacks via CADisplayLink.

For SwiftUI's declarative animation API (withAnimation, Animation, .animation(_:value:), transitions), use Apple's swiftui-specialist skill (its animations reference) instead. For SwiftUI immediate-mode drawing, use swiftui/canvas.md and swiftui/graphicscontext.md.

Return Format

Always include:

  1. Summary — answer the question concisely.
  2. File paths — list relevant files for full details, e.g.:
    • calayer.md for layer geometry, contents, hierarchy
    • cabasicanimation.md for animating a single property between two values
    • catransaction.md for batching, disabling implicit animations, or changing default duration

Files

FileContent
core-animation-index.mdFull QuartzCore framework index — layer basics, animation classes, transactions, layer subclasses
calayer.mdCALayer — the root layer class: geometry, contents, hierarchy, layout, animations
caanimation.mdCAAnimation — abstract base class for all Core Animation animation types
capropertyanimation.mdCAPropertyAnimation — abstract subclass animating a single layer property
cabasicanimation.mdCABasicAnimation — interpolate a layer property between two values
cakeyframeanimation.mdCAKeyframeAnimation — animate a property through a sequence of keyframes
caspringanimation.mdCASpringAnimation — spring-based interpolation with mass, stiffness, damping
caanimationgroup.mdCAAnimationGroup — run multiple animations together with a shared duration
catransition.mdCATransition — fade, push, reveal, and move-in transitions between layer states
camediatiming.mdCAMediaTiming — protocol shared by layers and animations (beginTime, duration, repeat, speed)
catransaction.mdCATransaction — batch property changes, disable implicit animations, set default duration/timing
catransform3d.mdCATransform3D — 4×4 matrix used by CALayer.transform for 3D transforms
cashapelayer.mdCAShapeLayer — vector-shape layer driven by a CGPath (stroke, fill, line dash)
cagradientlayer.mdCAGradientLayer — axial, radial, and conic gradient layers
caemitterlayer.mdCAEmitterLayer — particle emitter layer (fire, smoke, confetti, sparkles)
caemittercell.mdCAEmitterCell — individual particle definition used by CAEmitterLayer
careplicatorlayer.mdCAReplicatorLayer — replicate a sublayer with offsets and transforms
cametallayer.mdCAMetalLayer — layer backed by a Metal drawable for GPU-rendered content
catextlayer.mdCATextLayer — layer that renders plain or attributed text
catiledlayer.mdCATiledLayer — tile-based asynchronous content rendering for large or zoomable layers
cadisplaylink.mdCADisplayLink — timer synchronized to the display's refresh rate

When to Reach for Core Animation

  • You need to animate a layer property SwiftUI/UIKit doesn't expose declaratively (e.g., CAGradientLayer.colors, CAShapeLayer.strokeEnd, CAEmitterLayer.birthRate).
  • You need explicit keyframe or spring control with timing functions (CAMediaTimingFunction) per segment.
  • You want to batch implicit animations off (CATransaction.setDisableActions(true)).
  • You need a CADisplayLink per-frame callback (custom drawing loops, scrubbing, physics).
  • You're rendering thousands of particles with CAEmitterLayer or replicating sublayers with CAReplicatorLayer.

If your problem fits inside withAnimation { ... } in SwiftUI or UIView.animate { ... } in UIKit, prefer those — Core Animation sits underneath both and is rarely the right starting point in 2026-era code.

Fetching More Docs

  1. Search this skill's local .md files first.
  2. If the topic is not here, check the other installed Apple skills, then grep their local files.
  3. If no installed skill has the page, the QuartzCore path on Apple's site is /documentation/quartzcore/<symbol> — fetch via the sosumi.ai Markdown mirror (e.g. https://sosumi.ai/documentation/quartzcore/camediatimingfunction) or by running pnpm fetch-doc against the apple-skills tooling.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

apple-aso

免费

Optimize Apple App Store metadata in store.config.json for ASO (App Store Optimization). Use when working with store.config.json, App Store keywords, titles, subtitles, descriptions, or localizing app metadata. Helps maximize app visibility and downloads.

中文简介正在准备中。当前显示原文说明。

Prisma-Labs-Dev/apple-skills3472026年9月26日 更新

Index of Apple developer documentation for iOS, macOS, and related frameworks. Use when looking up what APIs exist in a framework, browsing available documentation, or deciding what docs to fetch. Covers SwiftUI, UIKit, Core Animation (QuartzCore), XCTest, HealthKit, Combine, SwiftData, and more.

中文简介正在准备中。当前显示原文说明。

Prisma-Labs-Dev/apple-skills3472026年9月26日 更新

API reference: BackgroundTasks. Query for BGTaskScheduler, app refresh, background processing.

中文简介正在准备中。当前显示原文说明。

Prisma-Labs-Dev/apple-skills3472026年9月26日 更新

combine

免费

API reference: Combine. Query for publishers, subscribers, operators, async data streams.

中文简介正在准备中。当前显示原文说明。

Prisma-Labs-Dev/apple-skills3472026年9月26日 更新

API reference: Core Haptics. Query for CHHapticEngine, haptic patterns, tactile feedback.

中文简介正在准备中。当前显示原文说明。

Prisma-Labs-Dev/apple-skills3472026年9月26日 更新

eventkit

免费

API reference: EventKit. Query for EKEventStore, EKEvent, EKReminder, calendar access.

中文简介正在准备中。当前显示原文说明。

Prisma-Labs-Dev/apple-skills3472026年9月26日 更新

查看 Prisma-Labs-Dev 的全部技能

报告此技能的问题