Skip to content

fix: keep the effect only when view belongs to a window - #48

Merged
satya164 merged 1 commit into
mainfrom
@satya164/keep-effect-on-window
Sep 15, 2026
Merged

satya164 merged 1 commit into
mainfrom
@satya164/keep-effect-on-window

Conversation

@satya164

Copy link
Copy Markdown
Member

No description provided.

Copilot AI lite review requested due to automatic review settings September 15, 2026 19:36
@satya164
satya164 merged commit cc845d9 into main Sep 15, 2026
5 of 6 checks passed

Copilot AI 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.

🟡 Changes recommended

Container setup can be lost while the view is detached from a window.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Updates iOS Liquid Glass effects to handle window lifecycle and deferred initialization.

Changes:

  • Adds window-aware setup and teardown for LiquidGlassView.
  • Defers container effect setup and disables initial animations.
  • Adds runtime availability checks for glass APIs.
File summaries
File Summary
ios/LiquidGlassView.swift Manages effect setup and cleanup across window transitions.
ios/LiquidGlassContainerView.swift Defers container effect initialization; attachment retry handling remains required.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +19 to +23
guard needsInitialSetup else {
return
}

needsInitialSetup = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants