iOS 13 Animating View Not Changing Frame

ε祈祈猫儿з 提交于 2019-12-03 01:05:37

Layout system in iOS 13 is different, we had the same issue and in our case by switching layout from automatic to Translates Mask Into Constraints fixed the issue.

You can use yourview.layer.frame instead of yourview.frame It worked for me.

only set .translatesAutoresizingMaskIntoConstraints 's View to YES, it worked for me. Hope that helps

I had the same issue when moving to iOS13. In my case, the sizing constraints were overriding any change I was making to the frame, which was not the case on iOS12. For my app to work correctly, I had to also update the NSLayoutContraint just before the "animateWithDuration" block, so that the new frame coordinates stay compatible with the layout constraints. Hope that helps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!