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
NSAnimationContext.runAnimationGroup({ (context: NSAnimationContext) in
constrain(view) { view in
view.leading = view.superview!.leading + offset
view.centerY = view.superview!.centerY
}
view.superview?.animator().layout()
}
The constraint/layout change fails to animate.
I can get the changes to animate if I instead use the view's layoutConstraints along with their animator() proxy, but this doesn't appear to be supported by Cartography.
Is there a solution to this on macOS?
The text was updated successfully, but these errors were encountered:
Using the following example code:
var offset = ...
NSAnimationContext.runAnimationGroup({ (context: NSAnimationContext) in
constrain(view) { view in
view.leading = view.superview!.leading + offset
view.centerY = view.superview!.centerY
}
view.superview?.animator().layout()
}
The constraint/layout change fails to animate.
I can get the changes to animate if I instead use the view's layoutConstraints along with their animator() proxy, but this doesn't appear to be supported by Cartography.
Is there a solution to this on macOS?
The text was updated successfully, but these errors were encountered: