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

How to change color when in application switcher on iOS? #31

Closed
minhdanh opened this issue Feb 12, 2022 · 4 comments
Closed

How to change color when in application switcher on iOS? #31

minhdanh opened this issue Feb 12, 2022 · 4 comments

Comments

@minhdanh
Copy link

On iOS whenever I open my app (with secured state), and open task switcher, the task switcher hides the content of the app with a white color. Can I change this color (my use case is that I want to support dark mode)?
Thanks.

@neckaros
Copy link
Owner

This should not be difficult and is a good idea. The white color is set here:

colorView.backgroundColor = UIColor(white: 1, alpha: opacity)

            colorView.backgroundColor = UIColor(**white: 1**, alpha: opacity)

It could be set as opacity as an optional argument.
I don’t have a Mac to test. Would you be willing to test or do a PR?

@minhdanh
Copy link
Author

I'm not familiar with Swift so I'm not sure how to do a PR for that 😅
But I'm willing to test a PR 👍

@minhdanh
Copy link
Author

minhdanh commented Mar 25, 2022

It could be set as opacity as an optional argument.

Can you tell how to link that optional argument between Flutter (dart) and Switft? I mean, how to pass one argument from Flutter too Swift?

@minhdanh
Copy link
Author

This is implemented in #29
I hope it will be merged. Closing this for now.

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