Skip to content
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

transformEnvironment(_:transform:) #1

Open
emefde opened this issue Jul 22, 2023 · 0 comments
Open

transformEnvironment(_:transform:) #1

emefde opened this issue Jul 22, 2023 · 0 comments

Comments

@emefde
Copy link

emefde commented Jul 22, 2023

Hello!

I've been doing a code-along for your Styling Components series and while going through Composable Styles I noticed that I can't make the relativeRoundedGroupBoxStyleNestingLevel @Environment value to work.

I did some debugging and it seems like the value is set properly for the environment within EnvironmentValues extension and transformEnvironment callback seems to be returning incremented nestingLevel value but the nestingLevel @Environment that is used inside a GroupBoxStyle does not change.

Have you noticed any issues with your Alternating Styles approach?
I'm using newest Xcode beta 4.

I might be doing something wrong TBH, I'm just starting with SwiftUI but maybe you're aware of this issue and have some sort of solution or at least know why it's not working?

Sorry if this isn't the right place for questions.
Hope you have a great weekend.
Cheers, Mateusz.

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

No branches or pull requests

1 participant