You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.
A binding to rcl_alpha or rcl_alphaValue could automatically flip hidden based on the alpha value.
On iOS, this would mostly just make the hidden property more useful, since there should be no performance difference between alpha = 0 and hidden = YES.
On OS X, however, this would be useful in conjunction with #28. Basically, you could animate the alpha even for a view that's not layer-backed (while resting). rcl_alphaValue could simply translate into hidden, but then a binding could enable layer-backing, animate the alpha, and disable layer-backing once finished.
The text was updated successfully, but these errors were encountered:
by setting view.alpha = 0.0f, iOS also sets view.hidden = yes internally, in fact, there is a
threshold for alpha (0.1f), for alpha values smaller than this threshold, view.hidden gets set to YES.
@zakdances As I pointed out above, we wouldn't do this as an optimization (because it wouldn't be one). It would be strictly to make view.hidden more meaningful, as well as to support layer-backing magic on OS X.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
A binding to
rcl_alpha
orrcl_alphaValue
could automatically fliphidden
based on the alpha value.On iOS, this would mostly just make the
hidden
property more useful, since there should be no performance difference betweenalpha = 0
andhidden = YES
.On OS X, however, this would be useful in conjunction with #28. Basically, you could animate the alpha even for a view that's not layer-backed (while resting).
rcl_alphaValue
could simply translate intohidden
, but then a binding could enable layer-backing, animate the alpha, and disable layer-backing once finished.The text was updated successfully, but these errors were encountered: