Community-maintained Agent Skills for complete Swift and Apple-platform app delivery.
72
90%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Medium
Suggest reviewing before use
Use this reference when implementing SF Symbol animated effects, respecting Reduce Motion system preferences, and tuning animation performance in SwiftUI.
Availability: .bounce, .pulse, .variableColor, .scale, .appear,
.disappear, and .replace are iOS 17+. .wiggle, .breathe, and .rotate
are iOS 18+.
value:)| Effect | Availability | Scope | Direction |
|---|---|---|---|
.bounce | iOS 17+ | .byLayer, .wholeSymbol | -- |
.wiggle | iOS 18+ | .byLayer, .wholeSymbol | .up, .down, .left, .right, .forward, .backward, .clockwise, .counterClockwise, .custom(angle:) |
Image(systemName: "bell.fill")
.symbolEffect(.bounce.byLayer, value: count)
// iOS 18+
Image(systemName: "arrow.left.arrow.right")
.symbolEffect(.wiggle.left, value: swapCount)isActive:)| Effect | Availability | Scope | Direction |
|---|---|---|---|
.pulse | iOS 17+ | .byLayer, .wholeSymbol | -- |
.variableColor | iOS 17+ | .byLayer, .wholeSymbol | Chaining: .cumulative/.iterative, .reversing/.nonReversing, .dimInactiveLayers/.hideInactiveLayers |
.scale | iOS 17+ | .byLayer, .wholeSymbol | .up, .down |
.breathe | iOS 18+ | .byLayer, .wholeSymbol | -- |
.rotate | iOS 18+ | .byLayer, .wholeSymbol | .clockwise, .counterClockwise |
Image(systemName: "wifi")
.symbolEffect(.pulse.byLayer, isActive: isConnecting)
// iOS 18+
Image(systemName: "gear")
.symbolEffect(.rotate.clockwise, isActive: isProcessing)
Image(systemName: "speaker.wave.3.fill")
.symbolEffect(
.variableColor.cumulative.nonReversing.dimInactiveLayers,
options: .repeating,
isActive: isPlaying
)
Image(systemName: "magnifyingglass")
.symbolEffect(.scale.up, isActive: isHighlighted)
// iOS 18+
Image(systemName: "heart.fill")
.symbolEffect(.breathe, isActive: isFavorite)Image(systemName: "checkmark.circle.fill")
.symbolEffect(.appear, isActive: showCheck)
Image(systemName: "xmark.circle")
.symbolEffect(.disappear, isActive: shouldHide)Image(systemName: isMuted ? "speaker.slash" : "speaker.wave.3")
.contentTransition(.symbolEffect(.replace.downUp))
// Magic replace (iOS 18+, morphs between symbols)
Image(systemName: isPlaying ? "pause.fill" : "play.fill")
.contentTransition(.symbolEffect(.replace.magic(fallback: .downUp)))Replace directions: .downUp, .offUp, .upUp.
.symbolEffect(.pulse, options: .default, isActive: true)
.symbolEffect(.bounce, options: .repeating, value: count)
.symbolEffect(.pulse, options: .nonRepeating, isActive: true)
.symbolEffect(.bounce, options: .repeat(3), value: count)
.symbolEffect(.pulse, options: .speed(2.0), isActive: true)
// RepeatBehavior
.symbolEffect(.bounce, options: .repeat(.periodic(3, delay: 0.5)), value: count)
.symbolEffect(.pulse, options: .repeat(.continuous), isActive: true)Image(systemName: "star.fill")
.symbolEffect(.pulse, isActive: true)
.symbolEffectsRemoved(reduceMotion)@Environment(\.accessibilityReduceMotion) private var reduceMotionwithAnimation(reduceMotion ? .none : .bouncy) {
isExpanded.toggle()
}Replace bouncy/spring with crossfade when reduce motion is on.
withAnimation(reduceMotion ? .easeInOut(duration: 0.2) : .spring(duration: 0.4, bounce: 0.3)) {
selectedTab = newTab
}// WRONG: Ignores reduce motion
PhaseAnimator(phases) { phase in /* ... */ }
// CORRECT: Use trigger-based or skip entirely
if !reduceMotion {
PhaseAnimator(phases) { phase in /* ... */ }
} else {
StaticView()
}Image(systemName: "wifi")
.symbolEffect(.pulse, isActive: isSearching)
.symbolEffectsRemoved(reduceMotion)extension Animation {
static func adaptive(
_ animation: Animation,
reduceMotion: Bool
) -> Animation? {
reduceMotion ? nil : animation
}
}
// Usage
withAnimation(.adaptive(.bouncy, reduceMotion: reduceMotion)) {
isVisible = true
}The content closure in KeyframeAnimator and PhaseAnimator runs every
frame while animating. Keep it to simple view modifiers.
// WRONG: Expensive computation per frame
.keyframeAnimator(initialValue: v, trigger: t) { content, value in
let result = heavyComputation(value.progress)
return content.opacity(result)
} keyframes: { _ in /* ... */ }
// CORRECT: Only apply view modifiers
.keyframeAnimator(initialValue: v, trigger: t) { content, value in
content.opacity(value.opacity)
} keyframes: { _ in /* ... */ }Animating view modifiers (opacity, scaleEffect, offset, rotationEffect)
is highly optimized. Avoid animating layout-triggering properties when possible.
ComplexAnimatedView()
.drawingGroup()Flattens the view hierarchy into a single Metal-backed layer. Use when compositing many overlapping animated views.
Avoid animating dozens of views simultaneously. Use staggered delays.
ForEach(Array(items.enumerated()), id: \.element.id) { index, item in
ItemView(item: item)
.transition(.move(edge: .bottom).combined(with: .opacity))
.animation(.spring.delay(Double(index) * 0.05), value: isVisible)
}Ensure animated views maintain stable identity. Use explicit id() modifiers
or stable ForEach identifiers.
// WRONG: View identity changes, breaks animation
ForEach(Array(items.enumerated()), id: \.offset) { index, item in
ItemView(item: item)
}
// CORRECT: Stable identity from model
ForEach(items) { item in
ItemView(item: item)
}Isolate child geometry from parent animations when they conflict.
ParentView()
.scaleEffect(parentScale)
.geometryGroup() // children see stable geometrytransition describes child insertion/removal, but a List row's changing
height may still snap instead of interpolate. Keep this skill focused on the
animation trigger, curve, and Reduce Motion behavior; route custom row-height,
grid, or layout interpolation work to swiftui-layout-components.
Override animation for specific subtrees without affecting siblings.
// Disable animation on one child while parent animates
ChildView()
.transaction { $0.animation = nil }Use the Core Animation instrument in Xcode Instruments to verify:
.tessl-plugin
skills
accessorysetupkit
references
activitykit
adattributionkit
references
alarmkit
references
app-clips
app-intents
app-store-optimization
app-store-review
apple-on-device-ai
appmigrationkit
audioaccessorykit
references
authentication
references
avfoundation-audio
references
avkit
background-processing
references
browserenginekit
callkit
references
carplay
cloudkit
contacts-framework
references
core-bluetooth
references
core-data
core-haptics
references
core-motion
references
core-nfc
references
coreml
references
cryptokit
cryptotokenkit
debugging-instruments
device-integrity
references
energykit
references
eventkit
family-controls
references
financekit
focus-engine
gamekit
git-branching-workflow
references
healthkit
references
homekit
references
ios-accessibility
ios-app-workflow
references
ios-ettrace-performance
ios-localization
ios-memgraph-analysis
ios-networking
ios-simulator
references
metrickit
references
musickit
references
natural-language
paperkit
references
passkit
references
pdfkit
pencilkit
references
permissionkit
references
photokit
push-notifications
quicklook
references
realitykit
references
relevancekit
references
scenekit
sensorkit
shazamkit
references
speech-recognition
references
spritekit
storekit
swift-api-design-guidelines
swift-architecture
references
swift-charts
swift-codable
references
swift-code-review
swift-concurrency
swift-formatstyle
references
swift-language
swift-security
references
swift-testing
swiftdata
swiftlint
swiftui-animation
swiftui-gestures
references
swiftui-layout-components
swiftui-liquid-glass
references
swiftui-patterns
swiftui-performance
swiftui-responsive-layout
swiftui-uikit-interop
swiftui-webkit
tabletopkit
tipkit
vision-framework
weatherkit
references