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 Aug 13, 2021. It is now read-only.
iOS has the same underlying problem, unfortunately. For example:
var position = runtime.get(block.layer).position
var positionX = runtime.get(block.layer).positionX
position.subscribeToValue { (p: CGPoint) in
log(p.x)
}
positionX.write(0.5) // Error: Nothing is logged even though position's value has changed.
The iOS example you provided works because you happen to subscribe to the same property (position) that Draggable modifies (position). If you subscribed to a different property (positionX), then you would run into the same issues even though positionX and position are related. Like Jeff said, documentation is the easiest way to solve this issue on both platforms. A more involved solution would involve creating a graph of properties that are related to each other.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Here's code that a user might write:
This wouldn't work because
Draggable
writes to the view's TRANSLATION instead of CENTER. However, the user may expect this to work.The text was updated successfully, but these errors were encountered: