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

DecorativeView #6

Closed
bdhaeseleer opened this issue Jul 22, 2019 · 3 comments
Closed

DecorativeView #6

bdhaeseleer opened this issue Jul 22, 2019 · 3 comments

Comments

@bdhaeseleer
Copy link

bdhaeseleer commented Jul 22, 2019

I'm pretty sure this is a dumb question, but is there a way to update/set the label into a decorative view programmatically ?
I didn't find any example about it in the project and I don't understand how I may access to the label in order to change "Revenue" by something else

Thanks in advance

@stuffrabbit
Copy link
Owner

Hey, the question isn’t dumb at all. Unfortunately, there is no way of simply updating decoration views once they are set. You could try to Invalide/initialize a new collection view layout and assign it to your collection view (this would mean that everything gets redrawn) anytime you want to change the decoration view. But I am not sure if this works properly. Hope this helps.

Best regards
Wojtek

@bdhaeseleer
Copy link
Author

Thanks for you answer, actually I based my solution on : https://stackoverflow.com/a/39218108 .
This isn't very modular but it works in my case where I only need a topLeft decoration.

@stuffrabbit
Copy link
Owner

That looks interesting. Thanks for the hint.

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