This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BlurryOverlayView: UIVisualEffectView { | |
private var animator: UIViewPropertyAnimator! | |
private var delta: CGFloat = 0 // The amount to change fractionComplete for each tick | |
private var target: CGFloat = 0 // The fractionComplete we're animating to | |
private(set) var isBlurred = false | |
private var displayLink: CADisplayLink! | |
override init(effect: UIVisualEffect?) { | |
super.init(effect: effect) | |
setup() |