Closed cloxnu closed 2 years ago
The layer property anchorPoint animation does not work, it is set to the value of the last frame at the start of the animation
anchorPoint
// ViewController 1 let view1 = UIView() view1.heroID = "view" view1.bounds.size = CGSize(width: 100, height: 100) view1.layer.anchorPoint = CGPoint(x: 0.5, y: 0.5) view1.layer.position = CGPoint(x: 100, y: 100) // ViewController 2 let view2 = UIView() view2.heroID = "view" view2.bounds.size = CGSize(width: 100, height: 100) view2.layer.anchorPoint = CGPoint(x: 0, y: 0) view2.layer.position = CGPoint(x: 200, y: 200)
view1 transition to view2 smoothly.
view1
view2
The anchorPoint of view2 is set to the value of the last frame at the start of the transition.
https://user-images.githubusercontent.com/33758521/187088860-f3fbfdd2-cb2d-4ea2-aac7-6ee9e3085045.mov
Hero Version: lastest develop branch
iOS Version(s): 15.5
Swift Version: 5.6
Devices/Simulators: iPhone 13 Pro
Reproducible in Examples? (Yes/No): Yes
The layer property
anchorPoint
animation does not work, it is set to the value of the last frame at the start of the animationWhat did you do?
What did you expect to happen?
view1
transition toview2
smoothly.What happened instead?
The
anchorPoint
ofview2
is set to the value of the last frame at the start of the transition.https://user-images.githubusercontent.com/33758521/187088860-f3fbfdd2-cb2d-4ea2-aac7-6ee9e3085045.mov
General Information
Hero Version: lastest develop branch
iOS Version(s): 15.5
Swift Version: 5.6
Devices/Simulators: iPhone 13 Pro
Reproducible in Examples? (Yes/No): Yes