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

ComposeUiViewController forces a white background #3584

Closed
chrisbanes opened this issue Aug 29, 2023 · 1 comment
Closed

ComposeUiViewController forces a white background #3584

chrisbanes opened this issue Aug 29, 2023 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@chrisbanes
Copy link

chrisbanes commented Aug 29, 2023

The rootView used by the ComposeUiViewController is set to UIColor.whiteColor (here). This is usually not usually an issue as it only happens when the ComposeUiViewController and is then drawn over as soon as a composition + draw happens.

I'm working on a project though where we are using ComposeUiViewControllers in select parts of the app, therefore we pop on/off ComposeUiViewController fairly frequently. The app is dark themed, meaning that we see a brief flash of white before the content of each ComposeUiViewController is drawn.

Is there a reason why white is used? Can me make this configurable or maybe transparent?

@chrisbanes chrisbanes added bug Something isn't working submitted labels Aug 29, 2023
@elijah-semyonov
Copy link
Contributor

elijah-semyonov commented Aug 30, 2023

It was reported earlier, is already fixed and will be deployed in next version, so API for configuring background color won't be added because it doesn't bring anything to the table, you can already do that from within setContent.

White was chosen arbitrarily, tbh.

@elijah-semyonov elijah-semyonov added duplicate This issue or pull request already exists and removed bug Something isn't working submitted labels Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants