Skip to content

Change to a view modifier, add 'foregroundColor', 'backgroundColor', and support .frame. - #4

Merged
0xWDG merged 7 commits into
mainfrom
frame
Oct 6, 2025
Merged

Change to a view modifier, add 'foregroundColor', 'backgroundColor', and support .frame.#4
0xWDG merged 7 commits into
mainfrom
frame

Conversation

@0xWDG

@0xWDG 0xWDG commented Oct 6, 2025

Copy link
Copy Markdown
Owner

Change to a view modifier, add 'foregroundColor', 'backgroundColor', and preps for 'frame'.

@0xWDG
0xWDG requested a review from Copilot October 6, 2025 14:38
@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 dynamic UI modifier implementation from a direct extension function to a proper ViewModifier struct, while adding support for alternative modifier names and improving the frame modifier implementation.

Key changes:

  • Refactored from extension function to ViewModifier pattern for better SwiftUI compliance
  • Added "foregroundColor" and "backgroundColor" as aliases for existing style modifiers
  • Implemented placeholder frame modifier with all parameters

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

Comment thread Sources/DynamicUI/Extensions/View.modifiers.swift Outdated
Comment thread Sources/DynamicUI/Extensions/View.modifiers.swift Outdated
0xWDG and others added 4 commits October 6, 2025 15:39
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@0xWDG 0xWDG changed the title Change to a view modifier, add 'foregroundColor', 'backgroundColor', and preps for 'frame'. Change to a view modifier, add 'foregroundColor', 'backgroundColor', and support .frame. Oct 6, 2025
@0xWDG
0xWDG requested a review from Copilot October 6, 2025 14:58

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

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


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 Outdated
@0xWDG
0xWDG merged commit 1dd7c70 into main Oct 6, 2025
5 checks passed
@0xWDG
0xWDG deleted the frame branch October 6, 2025 15:01
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