Skip to content

Add icon float-in animation when Launchpad unhides#92

Open
WaikikiGovernment with Copilot wants to merge 6 commits into
mainfrom
copilot/add-icon-float-animation
Open

Add icon float-in animation when Launchpad unhides#92
WaikikiGovernment with Copilot wants to merge 6 commits into
mainfrom
copilot/add-icon-float-animation

Conversation

Copilot AI commented Nov 28, 2025

Copy link
Copy Markdown
Contributor

Implements a smooth float-in/zoom-in animation for icons when Launchpad becomes active or unhides.

Animation Effect

  • Icons start invisible, scaled to 50%, offset 40pt down
  • Spring animation brings them to full size and position
  • Staggered 20ms delay per icon creates a cascading wave effect

Changes

LaunchpadConstants.swift

  • floatInAnimation: Spring animation (response: 0.5s, damping: 0.7)
  • floatInInitialScale, floatInInitialOffset, floatInStaggerDelay, floatInInitialDelay

PagedGridView.swift

  • Added isAppearing state and triggerFloatInAnimation() helper
  • Triggered on initial appear and app reactivation via handleAppActivation()

SinglePageView.swift

  • Accepts isAppearing parameter
  • Applies animated opacity, scale, and offset modifiers with staggered delays
.opacity(itemOpacity())
.scaleEffect(isAppearing ? 1 : LaunchpadConstants.floatInInitialScale)
.offset(y: isAppearing ? 0 : LaunchpadConstants.floatInInitialOffset)
.animation(LaunchpadConstants.floatInAnimation.delay(staggerDelay), value: isAppearing)
Original prompt

This section details on the original issue you should resolve

<issue_title>Add icon float in animation when Launchpad unhides</issue_title>
<issue_description>When Launchpad becomes active show a smooth animations that make the icons float in / zoom in from distant.</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 4 commits November 28, 2025 14:43
Co-authored-by: WaikikiGovernment <93095571+WaikikiGovernment@users.noreply.github.com>
Co-authored-by: WaikikiGovernment <93095571+WaikikiGovernment@users.noreply.github.com>
Co-authored-by: WaikikiGovernment <93095571+WaikikiGovernment@users.noreply.github.com>
Co-authored-by: WaikikiGovernment <93095571+WaikikiGovernment@users.noreply.github.com>
Copilot AI changed the title [WIP] Add icon float animation for Launchpad unhide Add icon float-in animation when Launchpad unhides Nov 28, 2025
@WaikikiGovernment

Copy link
Copy Markdown
Collaborator

@copilot show animation not only when launching, but when unhide/activate too.

@WaikikiGovernment WaikikiGovernment marked this pull request as ready for review November 28, 2025 15:00

Copilot AI commented Nov 28, 2025

Copy link
Copy Markdown
Contributor Author

@copilot show animation not only when launching, but when unhide/activate too.

The animation is already triggered on both launch and unhide/activate. The handleAppActivation() function at line 408 calls triggerFloatInAnimation() and is invoked whenever the app becomes active via the NSWorkspace.didActivateApplicationNotification observer (line 175-180). This notification fires when the app is unhidden or reactivated.

Current animation triggers:

  • Initial launch: .onAppear (line 88-91)
  • Unhide/Reactivate: didActivateApplicationNotificationhandleAppActivation()triggerFloatInAnimation() (lines 175-180, 408-421)

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.

Add icon float in animation when Launchpad unhides

3 participants