Skip to content

feat(opacity): add opacity APIs and appearance animations - #1135

Merged
Kyle-Ye merged 2 commits into
mainfrom
feature/opacity
Oct 11, 2026
Merged

Kyle-Ye merged 2 commits into
mainfrom
feature/opacity

Conversation

@Kyle-Ye

@Kyle-Ye Kyle-Ye commented Oct 11, 2026

Copy link
Copy Markdown
Member

Summary

  • Add repeating opacity and opacity APIs for shape styles, visual effects, and hover effect content.
  • Implement appearance animations with lifecycle state and archived opacity, offset, scale, and rotation effects.
  • Add API documentation and regression coverage for animation endpoints and archive behavior.

@github-actions github-actions Bot added area: animation Animation, transitions, transactions, or timing behavior. area: rendering DisplayList, render backends, renderer hosts, drawing, and effects. type: feature New API, behavior, platform support, or user-facing capability. labels Oct 11, 2026
@Kyle-Ye
Kyle-Ye added this pull request to stack #1137 October 11, 2026 15:06
@augmentcode

augmentcode Bot commented Oct 11, 2026

Copy link
Copy Markdown
🤖 Augment PR Summary

Summary

  • Add private View.repeatingOpacity(from:to:animation:) for continuous opacity effects.
  • Drive repetition using Animation.repeatForever() and appearance-triggered state changes.
  • Add ShapeStyle.opacity(_:) to multiply a style’s drawing opacity.
  • Add private array and variadic ShapeStyle.opacities(_:) overloads.
  • Add opacity APIs for visual effects and hover-effect content.
  • Introduce composition containers for visual and hover renderer effects.
  • Add a shared appearance-animation wrapper that evaluates both endpoints eagerly.
  • Support explicit withAnimation and value-triggered animation strategies.
  • Reset active state and increment child identity on disappearance.
  • Archive opacity, offset, scale, and rotation endpoints as display-list animations.
  • Add API documentation and regression tests for endpoint evaluation, archive encoding, content retention, and identity fallback for unsupported compositions.

🤖 Was this summary useful? React with 👍 or 👎

@augmentcode augmentcode Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed. No suggestions at this time.

Comment augment review to trigger a new review at any time.

@augmentcode augmentcode Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deep Code Review Agent🐛

Review completed with 0 suggestions.

Reviewed commit: 6ec941c

@tuist

tuist Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

🛠️ Tuist Run Report 🛠️

Tests 🧪

Scheme Status Ran test modules Commit
Unknown ⏳ 7 da0560dc9
OpenSwiftUI ✅ 7 da0560dc9

Builds 🔨

Scheme Status Duration Commit
OpenSwiftUI ✅ 36.7s da0560dc9

@codecov

codecov Bot commented Oct 11, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 35.29412% with 55 lines in your changes missing coverage. Please review.
✅ Project coverage is 26.59%. Comparing base (aefa4e6) to head (6ec941c).

Files with missing lines Patch % Lines
...penSwiftUICore/Animation/AppearanceAnimation.swift 45.45% 36 Missing ⚠️
...nSwiftUI/Render/RendererEffect/OpacityEffect.swift 0.00% 19 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1135      +/-   ##
==========================================
+ Coverage   26.53%   26.59%   +0.05%     
==========================================
  Files         821      823       +2     
  Lines       61722    61807      +85     
==========================================
+ Hits        16376    16435      +59     
- Misses      45346    45372      +26     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Kyle-Ye
Kyle-Ye merged commit c7b935c into main Oct 11, 2026
5 of 6 checks passed
@Kyle-Ye
Kyle-Ye deleted the feature/opacity branch October 11, 2026 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: animation Animation, transitions, transactions, or timing behavior. area: rendering DisplayList, render backends, renderer hosts, drawing, and effects. type: feature New API, behavior, platform support, or user-facing capability.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant