Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //// Vladimir Zhelnov - neatek.pw - Web/iOS dev
- let fadeAnim:CABasicAnimation = CABasicAnimation(keyPath: "contents");
- fadeAnim.fromValue = self.imageViewOut.image;
- fadeAnim.toValue = image; // new image
- fadeAnim.duration = 0.8; //smoothest value
- self.imageblur.layer.add(fadeAnim, forKey: "contents");
- self.imageblur.image = image; // set new image
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement