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

Changing background color #22

Open
shi-rudo opened this issue Feb 3, 2019 · 4 comments
Open

Changing background color #22

shi-rudo opened this issue Feb 3, 2019 · 4 comments

Comments

@shi-rudo
Copy link

shi-rudo commented Feb 3, 2019

Hey, the standard way of changing the background color of the content cell does not work on PasswordRow.

dark_quotes_xcworkspace

.cellSetup { cell, row in cell.backgroundColor = .blue }

@mats-claassen
Copy link
Member

The default cell has a UIView as background which is not connected as an outlet. You could possibly access it as subclass of the contentView of the cell but this is not a very nice solution.

Otherwise you should create a nib file for your cell

@sarbogast
Copy link
Contributor

There needs to be a better solution for that, as this component does not support dark mode as is. It should either not hardcode the background to white or make it easier to change that background color at the very least

@mats-claassen
Copy link
Member

@sarbogast is this fixed by #30 ?

@sarbogast
Copy link
Contributor

The original request was to make it easy to set the background color to any color. My pull request merely makes it so that the default background color works in both light and dark mode

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

3 participants