iPhone “slide to unlock” animation

前端 未结 13 700
感情败类
感情败类 2020-11-28 00:49

Any ideas as to how Apple implemented the \"slide to unlock\" (also, \"slide to power off\" is another identical example) animation?

I thought about some sort of ani

相关标签:
13条回答
  • 2020-11-28 01:38
    • Top: UILabel with opaque background and clear text
      • Clear text is rendered in drawRect: func through complicated masking process
    • Middle: Worker View that is performing a repeating animation moving an image behind the top label
    • Bottom: a UIView that you add the middle and top subview to in that order. Can be whatever color you want the text to be

    An example can be seen here https://github.com/jhurray/AnimatedLabelExample

    0 讨论(0)
提交回复
热议问题