deepagents-architectur…
Guides architectural decisions for Deep Agents applications. Use when deciding between Deep Agents vs alternatives, choosing backend strategies, designing…
Write Swift animation code using Apple's latest frameworks — SwiftUI animations, Core Animation, and UIKit. Prefer first-party APIs over third-party libraries. Use when implementing iOS animations, writing animation code, building transitions, creating gesture-driven
$ npx -y skills add existential-birds/beagle --skill ios-animation-implementation --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/ios-animation-implementationContext preview
The summary Claude sees to decide when to auto-load this skill.
Write Swift animation code using Apple's latest frameworks — SwiftUI animations, Core Animation, and UIKit. Prefer first-party APIs over third-party libraries. Use when implementing iOS animations, writing animation code, building transitions, creating gesture-driven
name: ios-animation-implementation description: Write Swift animation code using Apple's latest frameworks — SwiftUI animations, Core Animation, and UIKit. Prefer first-party APIs over third-party libraries. Use when implementing iOS animations, writing animation code, building transitions, creating gesture-driven interactions, or converting animation specs/designs into working Swift code. Covers iOS 18 through iOS 26 APIs including KeyframeAnimator, PhaseAnimator, custom Transition protocol, zoom navigation transitions, matchedGeometryEffect, symbol effects, mesh gradients, and SwiftUI-UIKit animation bridging.
Write animation code that uses Apple's frameworks directly. Third-party animation libraries add dependency risk and often lag behind new OS releases — Apple's APIs are well-optimized for the render pipeline and get free improvements with each iOS version.
Check whether the system already handles the motion you need. Apple's HIG: "Many system components automatically include motion, letting you offer familiar and consistent experiences throughout your app." System components also automatically adjust for accessibility settings and input methods — Liquid Glass (iOS 26) responds with greater emphasis to direct touch and produces subdued effects for trackpad. Custom animation can't match this adaptiveness for free, so prefer system-provided motion when it exists.
**Skip custom animation when:**
**Write custom animation when:**
Choose the right API for the job. Start with SwiftUI animations (simplest, most declarative), drop to UIKit when you need interactive control, and reach for Core Animation only when you need layer-level precision.
| Need | API | Why | |------|-----|-----| | State-driven property changes | `withAnimation` / `.animation(_:value:)` | Declarative, automatic interpolation | | Multi-step sequenced animation | `PhaseAnimator` | Discrete phases with per-phase timing | | Per-property timeline control | `KeyframeAnimator` | Independent keyframe tracks per property | | Hero transitions between views | `matchedGeometryEffect` + `Namespace` | Geometry matching across view identity | | Navigation push/pop with zoom | `.navigationTransition(.zoom)` | iOS 18+ built-in zoom transition | | Custom view insertion/removal | `Transition` protocol conformance | `TransitionPhase`-based modifier | | In-view content swap | `.contentTransition()` | Numeric text, interpolation, opacity | | Scroll-position-based effects | `.scrollTransition` | Phase-driven scroll-linked animation | | SF Symbol animation | `.symbolEffect()` | Bounce, pulse, wiggle, breathe, rotate | | Interactive/interruptible (UIKit) | `UIViewPropertyAnimator` | Pause, resume, reverse, scrub | | Per-layer property animation | `CABasicAnimation` / `CASpringAnimation` | Shadow, border, cornerRadius animation | | Complex choreography (layers) | `CAKeyframeAnimation` + `CAAnimationGroup` | Multi-property layer animation | | Physics simulation | `UIDynamicAnimator` | Gravity, collision, snap, attachment | | Haptic feedback paired with animation | `.sensoryFeedback` modifier | Tied to value changes | | Animated background gradients | `MeshGradient` | 2D grid of positioned, animated colors |
Detailed patterns and code examples live in the reference files. Load the one that matches your task:
| Task | Reference | |------|-----------| | SwiftUI declarative animations (withAnimation, springs, phase, keyframe) | [references/swiftui-animations.md](references/swiftui-animations.md) | | View transitions (navigation, modal, custom Transition protocol) | [references/transitions.md](references/transitions.md) | | Gesture-driven interactive animations | [references/gesture-animations.md](references/gesture-animations.md) | | Core Animation and UIKit animation patterns | [references/core-animation.md](references/core-animation.md) |
Springs are the default animation type in modern SwiftUI. Use `duration` and `bounce` — not mass/stiffness/damping unless bridging to UIKit/CA.
| Preset | Duration | Bounce | Use Case | |--------|----------|--------|----------| | `.smooth` | 0.5 | 0.0 | Default transitions, most state changes | | `.snappy` | 0.3 | 0.15 | Micro-interactions, toggles, quick feedback | | `.bouncy` | 0.5 | 0.3 | Playful moments, attention-drawing | | `.interactiveSpring` | 0.15 | 0.0 | Gesture tracking, drag following | | Custom | varies | varies | `.spring(duration: 0.4, bounce: 0.2)` |
Apple's HIG: "Make motion optional" and "supplement visual feedback by also using alternatives like haptics and audio to communicate." Every animation must handle Reduce Motion, and important state changes should use multiple feedback channels — not animation alone.
@Environment(\.accessibilityReduceMotio
Image: NASA, Public Domain. Source Beagle is an Agent Skills marketplace: framework-aware code review, documentation, testing, architectural analysis, and git workflows for any compatible coding agent.
Repo: existential-birds/beagle
Guides architectural decisions for Deep Agents applications. Use when deciding between Deep Agents vs alternatives, choosing backend strategies, designing…
Reviews Deep Agents code for bugs, anti-patterns, and improvements. Use when reviewing code that uses create_deep_agent, backends, subagents, middleware, or…
Implements agents using Deep Agents. Use when building agents with create_deep_agent, configuring backends, defining subagents, adding middleware, or setting…
Guides architectural decisions for LangGraph applications. Use when deciding between LangGraph vs alternatives, choosing state management strategies, designing…
Reviews LangGraph code for bugs, anti-patterns, and improvements. Use when reviewing code that uses StateGraph, nodes, edges, checkpointing, or other LangGraph…
Implements stateful agent graphs using LangGraph. Use when building graphs, adding nodes/edges, defining state schemas, implementing checkpointing, handling…