Skip to content

[Refactor/#7] Optimize recomposition using graphicsLayer#8

Merged
DongChyeon merged 2 commits intomainfrom
refactor/#7-graphicslayer-optimization
Nov 9, 2025
Merged

[Refactor/#7] Optimize recomposition using graphicsLayer#8
DongChyeon merged 2 commits intomainfrom
refactor/#7-graphicslayer-optimization

Conversation

@DongChyeon
Copy link
Copy Markdown
Owner

🎯 Related Issue


📝 Description

What does this PR do?

Extracts the curve effect calculation logic from the LazyColumn item into a reusable Modifier.curvedPickerEffect() extension.
This refactor moves visual transformation logic (alpha, scaleY) into a graphicsLayer lambda,
reducing unnecessary recompositions during scroll and improving frame stability.


✅ Changes

  • Extract curve effect logic into Modifier.curvedPickerEffect() extension
  • Move visual transformations (alpha, scaleY) into graphicsLayer {} lambda

🔍 Screenshots / Test Results (if applicable)


👤 Reviewer Checklist

  • Code quality and style
  • Functionality works as expected
  • No breaking changes introduced

@DongChyeon DongChyeon requested a review from Copilot November 9, 2025 13:58
@DongChyeon DongChyeon self-assigned this Nov 9, 2025
@DongChyeon DongChyeon added the enhancement New feature or request label Nov 9, 2025
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the curved picker effect implementation by extracting inline calculations into a dedicated modifier extension function. The change improves code organization and maintainability by separating the visual effect logic from the main composable content.

  • Extracted visual effect calculations (alpha and scaleY) into a new curvedPickerEffect modifier extension function
  • Removed derivedStateOf usage and direct graphicsLayer application in favor of the new modifier
  • Simplified the Text composable by removing inline alpha calculations

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@DongChyeon DongChyeon requested a review from Copilot November 9, 2025 14:27
@DongChyeon DongChyeon merged commit 96deaaa into main Nov 9, 2025
6 checks passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

♻️ Refactor - Optimize recomposition using graphicsLayer

2 participants