Bind two UIview fram/Position using Rxswift

一个人想着一个人 提交于 2019-12-04 08:26:24

from apple 'frame' // animatable. do not use frame if view is transformed since it will not correctly reflect the actual location of the view. use bounds + center instead.

You can observe bound or center to instead.

UIView.frame is not KVO compliant so you can't directly observe it. In any case, doing so is inappropriate IMHO.

Some event is causing your view to change size. Observe that instead.

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