forked from rime/squirrel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
尝试翻页动画,太难了,想实现就必须同时有新旧layer,这就涉及layer的深拷贝了,但是CALayer是不支持深拷贝的,自己手动拷贝属性…
…layer又不支持富文本,拷贝出来效果也跟原版有差别,本来快放弃了,又心又不甘于是用一整晚上时间了一个实验品,实测旧layer显示效果跟原版有差异还不是最大的问题,衔接不流畅才是,因为layer运动后最终会停留在父视图下,往上退场动画结束后旧layer会留在panel范围里跟视图layer重叠,还有打断动画也是个问题,因为0.2秒时间内其实很容易形成连按下键,后面再考虑吧,作为实验品勉强成功了,后面效果可能不会太好
- Loading branch information
吕小布
committed
Dec 18, 2024
1 parent
b4b5a7b
commit 18fa2f9
Showing
2 changed files
with
159 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters