We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Bond<T>
I'm having some trouble figuring out how to use a bond for things that are not necessarily value transforms.
For instance, if I want to change the height of my label based on the updated text, I thought I could do something like this:
textLabel.dynText ->> Bond<String>() { _ in textLabel.sizeToFit() }
However, that seems to only fire once. Changing the textLabel (even via another bond) does not cause the function to fire again.
Am I missing something?
The text was updated successfully, but these errors were encountered:
you need to retain the bond
Sorry, something went wrong.
Ok. Seems like I probably should have thought of that, but it wasn't obvious to me from the docs.
Thanks!
(And I see that it's explicitly stated in the docs now, it's just not actually spelled out in the examples)
No branches or pull requests
I'm having some trouble figuring out how to use a bond for things that are not necessarily value transforms.
For instance, if I want to change the height of my label based on the updated text, I thought I could do something like this:
However, that seems to only fire once. Changing the textLabel (even via another bond) does not cause the function to fire again.
Am I missing something?
The text was updated successfully, but these errors were encountered: