How to change the background color when testing something white? #563
Unanswered
Ricardo1980
asked this question in
Q&A
Replies: 2 comments
-
Using a non-white background view to wrap your button is probably the way to go. I'm going to convert this to a discussion since it is not an issue with the library. |
Beta Was this translation helpful? Give feedback.
0 replies
-
We've run a similar issue were we wanted a transparent background in the image, similar to how the UIView(Controller) snapshots are created. Currently the only workaround we see is duplicating SwiftUIView.swift to be able to set the background of the UIHostingController to clear. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am testing a SwiftUI button that has a white background.
Because the background is already white, it is a bit difficult to see is the component is working fine.
Is there any way to change the background color?
Or should I manually embed my component into another view with a different background color?
Thanks for suggestions.
Beta Was this translation helpful? Give feedback.
All reactions