iPhone - having a Ripple effect on a UIImageView

前端 未结 5 1037
-上瘾入骨i
-上瘾入骨i 2020-11-30 06:54

I am attempting to create a ripple like effect on an imageView when it is touched down on, however I do not understand how to implement OpenGL for windows and porting it to

5条回答
  •  醉话见心
    2020-11-30 07:52

    @Rony's CATransition Ripple in Swift

    let animation = CATransition()
    animation.delegate = self
    animation.duration = 2
    animation.timingFunction = CAMediaTimingFunction(name: kCAMediaTimingFunctionEaseInEaseOut)
    animation.type = "rippleEffect"
    myView.layer.addAnimation(animation, forKey: nil)
    

    (This is my first post, so idk if I'm doing it right :D)

提交回复
热议问题