8000 Style patching tree node (issue #42) by Samuel-IH · Pull Request #57 · SwiftWebUI/SwiftWebUI · GitHub
[go: up one dir, main page]

Skip to content

Style patching tree node (issue #42) #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

Samuel-IH
Copy link
@Samuel-IH Samuel-IH commented Sep 17, 2020

Hello, I have taken a recent interest in this project and have written a PR for issue #42
The idea of HTMLStylePatching node is to serve as a A3D3 "container" to hold style patches, whenever we call the .patch function it will automatically hook into an existing patching node, or create a new one if it doesn't already exist.

The sample code presented in #42 works properly now, however, I am still having minor issues chaining multiple shadows on the same view (CSS shadow blending issues).

Lastly, I would like to note that my implementation in BackgroundModifier.swift isn't as clean as I wish (I had to copy the style switch from the HTML node). Perhaps there is a better way to do this.

SwiftWebUI#42
(cherry picked from commit 777e1bb)
…TMLStylePatchingNode`

Now what do we do with HTMLShadowNode and HTMLBackgroundNode?

(cherry picked from commit 91e34b6)
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.

1 participant
0