iOS 7.1 Slide To Unlock Text Animation

前端 未结 8 1687
傲寒
傲寒 2021-02-05 11:56

I\'m not sure if this has been asked before, but I\'m having a hard time finding it. Perhaps I\'m not using the right search terms, so if an answer already exists, if someone c

8条回答
  •  离开以前
    2021-02-05 12:21

    You should be able to use the mask property of CALayer to create a cutout of the contents of another layer.

    Set the mask to contain your text (maybe a CATextLayer can work here). This is what Shimmer says it uses.

提交回复
热议问题