youngsoft / MyLinearLayout

MyLayout is a powerful iOS UI framework implemented by Objective-C. It integrates the functions with Android Layout,iOS AutoLayout,SizeClass, HTML CSS float and flexbox and bootstrap. So you can use LinearLayout,RelativeLayout,FrameLayout,TableLayout,FlowLayout,FloatLayout,PathLayout,GridLayout,LayoutSizeClass to build your App 自动布局 UIView UITableView UICollectionView RTL
MIT License
4.41k stars 899 forks source link

对动画设置为0秒,completion不执行的问题 #150

Closed laniolove closed 2 years ago

laniolove commented 2 years ago

使用这个动画接口: - (void)layoutAnimationWithDuration:(NSTimeInterval)duration options:(UIViewAnimationOptions)options completion:(void (^__nullable)(BOOL finished))completion 如果duration 为0时候,我看completion不执行。

youngsoft commented 2 years ago

目前的实现就是当duration为0时表明是无需动画,因此也不会执行任何completion。所以不知道你设置为0,又要执行动画的目的是什么?以及completion在为0时的结束逻辑为何?

laniolove commented 2 years ago

谢谢,大佬,(咳咳,我在测试程序,动态修改动画时间,发现没返回,有点疑惑,没多大问题)