mirror of
https://github.com/exyte/Macaw.git
synced 2024-10-26 13:01:25 +03:00
Adding animation on superview update fix
This commit is contained in:
parent
167e4b1f4d
commit
14bd5d8b6d
@ -27,6 +27,8 @@ public class MacawView: UIView {
|
||||
didSet {
|
||||
super.frame = frame
|
||||
|
||||
frameSetFirstTime = true
|
||||
|
||||
guard let _ = superview else {
|
||||
return
|
||||
}
|
||||
@ -47,6 +49,11 @@ public class MacawView: UIView {
|
||||
return
|
||||
}
|
||||
|
||||
if !frameSetFirstTime {
|
||||
return
|
||||
|
||||
}
|
||||
|
||||
nodeAddedViaInit = false
|
||||
animationProducer.addStoredAnimations(node)
|
||||
}
|
||||
@ -58,6 +65,7 @@ public class MacawView: UIView {
|
||||
|
||||
var toRender = true
|
||||
var nodeAddedViaInit = false
|
||||
var frameSetFirstTime = false
|
||||
|
||||
internal var animationCache: AnimationCache?
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user