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

Button text changes but color will not update #107

Open
buildngrowsv opened this issue Dec 22, 2024 · 2 comments
Open

Button text changes but color will not update #107

buildngrowsv opened this issue Dec 22, 2024 · 2 comments

Comments

@buildngrowsv
Copy link

Somehow I got color change to work on the same button
But then somehow it stopped working. I cannot figure out why. Tried older versions of the code and even entirely other macs
Still no luck. No errors in console seems like it's injecting fine but no change in color on simulator anymorel.

@buildngrowsv
Copy link
Author

                        MainButton(title: "Start Call") {
                            callCount += 1
                            viewModel.startCall()
                        }
                        .enableInjection()
                        MainButton(title: "Start Conversatiodn", color: .yellow) {
                            callCount += 1
                            viewModel.startCall(isCustomCall: true)
                        }
                        .enableInjection()
                        Text(
                            "Click here to start your call"
                        )

@krzysztofzablocki
Copy link
Owner

krzysztofzablocki commented Dec 23, 2024

there is no context here that I could use to help you, you need:

  • other linker flags
  • property wrapper
  • one enable injection (in body) in SwiftUI to work

What you are doing here with multiple calls is not really valid, I assume it's one body ?

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

2 participants