I Have bad performance on using shadow effect

后端 未结 4 1733
时光取名叫无心
时光取名叫无心 2021-02-08 12:33

I put some image views on scroll view. And when I drag this scroll view, I didn\'t have any problems.

But after I applied shadow effect to these image views, dragging th

4条回答
  •  我寻月下人不归
    2021-02-08 13:30

    While using the reasterized layer indeed increases the performance you will get better (nicer) results using the shadowpath proerty as @wayne-hartman suggests.

    Check http://nachbaur.com/blog/fun-shadow-effects-using-custom-calayer-shadowpaths on how to use the CALayer shadow path.

提交回复
热议问题