Skip to content

Make DynamicUIHelper's functions static - #5

Merged
0xWDG merged 1 commit into
mainfrom
static
Oct 6, 2025
Merged

Make DynamicUIHelper's functions static#5
0xWDG merged 1 commit into
mainfrom
static

Conversation

@0xWDG

@0xWDG 0xWDG commented Oct 6, 2025

Copy link
Copy Markdown
Owner

No description provided.

@0xWDG
0xWDG requested a review from Copilot October 6, 2025 15:03
@0xWDG 0xWDG self-assigned this Oct 6, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 DynamicUIHelper class by converting its instance methods to static methods and updating all call sites to use static method calls instead of instance methods.

  • Converted three helper methods (translateColor, translateFontWeight, translateAlignment) from instance methods to static methods
  • Removed the instance variable helper from DynamicUIModifier
  • Updated all method calls to use static class method syntax

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
Sources/DynamicUI/Helpers/DynamicUIHelper.swift Converted three helper methods to static methods
Sources/DynamicUI/Extensions/View.modifiers.swift Removed helper instance variable and updated method calls to use static syntax

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread Sources/DynamicUI/Helpers/DynamicUIHelper.swift
@0xWDG
0xWDG merged commit 56fd7e2 into main Oct 6, 2025
5 checks passed
@0xWDG
0xWDG deleted the static branch October 6, 2025 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants