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

Change background colour #664

Open
ykworld opened this issue Aug 5, 2022 · 4 comments
Open

Change background colour #664

ykworld opened this issue Aug 5, 2022 · 4 comments

Comments

@ykworld
Copy link

ykworld commented Aug 5, 2022

Hello,

I would like to change the background colour from grey to white. How can I change it?

Thanks!

@gavirawson-apple
Copy link
Collaborator

Hi! Which View Controller are you using in CareKit?

@ykworld
Copy link
Author

ykworld commented Aug 11, 2022

Hi! Which View Controller are you using in CareKit?

I am using OCKListViewController and OCKDailyPageViewController. Can I change the background color?

@ykworld
Copy link
Author

ykworld commented Aug 11, 2022

[](url
Screen Shot 2022-08-11 at 9 40 39 AM
)

I want to change the grey background color.

@gavirawson-apple
Copy link
Collaborator

The underlying view used in the OCKDailyPageViewController is private to the framework. If you'd like to change the background color, you can modify the view in the framework directly.

On the other hand, the OCKListViewController does support modifying the background color outside of the framework -
listViewController.view.backgroundColor = ...

Let me know if that works for you.

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