Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ensan-hcl
Copy link
Member

Resolve #247

@ensan-hcl ensan-hcl added the refactoring Clean up! label Apr 26, 2025
@ensan-hcl ensan-hcl requested a review from Copilot April 26, 2025 16:56
@ensan-hcl ensan-hcl self-assigned this Apr 26, 2025
Copy link
Contributor

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 addresses the use of deprecated API calls by converting calls to .overlay and .background into their trailing-closure forms. The changes refactor the UI code in various view components to use the updated closure syntax for improved clarity and compatibility.

  • Refactored .overlay calls to use closure syntax.
  • Refactored .background calls to use closure syntax.
  • Ensured consistency in the visual presentation across multiple UI components.

Reviewed Changes

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

Show a summary per file
File Description
MainApp/Theme/ThemeTab.swift Updated overlay syntax using trailing closure.
MainApp/Theme/ThemeShareView.swift Replaced background() parameter with closure block.
MainApp/Setting/FontSizeSetting/FontSizeSettingItemView.swift Switched overlay() to use closure form.
MainApp/Setting/CustomKeys/QwertyCustomKeys/QwertyCustomKeysItemView.swift Refactored both background() and overlay() to closure syntax.
MainApp/Setting/CustomKeys/FlickCustomKeys/CustomKeySettingFlickKeyView.swift Updated background() and overlay() to closure format.
MainApp/General/LargeButtonStyle.swift Converted background() to closure syntax.
MainApp/Customize/EditingTenkeyCustardView.swift Updated overlay() calls with trailing closure blocks.
MainApp/Customize/CustomizeTabWalkthrough.swift Switched overlay() to closure syntax around gear icon.
AzooKeyCore/Sources/KeyboardViews/View/QwertyKeyboard/KeyView/QwertyKeyView.swift Replaced several overlay calls with closures; adjusted overlay alignment.
AzooKeyCore/Sources/KeyboardViews/View/KeyboardView.swift Converted overlay() usage to the closure form.
AzooKeyCore/Sources/KeyboardViews/View/KeyboardBar/SliderStyleCursorBar.swift Updated overlay() to trailing closure style.
AzooKeyCore/Sources/KeyboardViews/View/KeyboardBar/ReflectStyleCursorBar.swift Refactored overlay() calls to closures for better clarity.
AzooKeyCore/Sources/KeyboardViews/View/FlickKeyboard/KeyView/FlickKeyView.swift Updated overlay() to use closure syntax.
AzooKeyCore/Sources/KeyboardViews/View/CustomKeybaord/SimpleKeyView/SimpleKeyView.swift Switched background() and overlay() to use closures.
AzooKeyCore/Sources/KeyboardViews/View/Components/ResizingRect.swift Converted multiple overlay() calls to trailing closure format.
Comments suppressed due to low confidence (1)

AzooKeyCore/Sources/KeyboardViews/View/QwertyKeyboard/KeyView/QwertyKeyView.swift:250

  • Verify that replacing the Group-based overlay with a closure using alignment ('.overlay(alignment: .bottom)') maintains the intended stacking order and visual layout. Double-check that no unintended layout shifts occur due to this refactoring.
.overlay {

@ensan-hcl ensan-hcl merged commit d22ee9c into develop Apr 26, 2025
1 of 5 checks passed
@ensan-hcl ensan-hcl deleted the refactor/deprecated_overlay branch April 26, 2025 16:56
@ensan-hcl ensan-hcl added this to the v2.4 milestone May 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactoring Clean up!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Refactoring] overlay(overlay:alignment:)がiOS 17以降deprecatedなので移行する

2 participants