Megabits
Megabits

Reputation: 606

NSVisualEffectView fade animation

How can I make a fade in/fade out animation on NSVisualEffectView. I have used NSAnimationContext, but it just disappear without animation.

NSAnimationContext.runAnimationGroup({ (context) in
            context.duration = 0.5
            blurView.animator().alphaValue = 0
}, completionHandler: {
})

Upvotes: 1

Views: 474

Answers (1)

Oskar
Oskar

Reputation: 3702

It is not possible to modify the alpha of a NSVisualEffectView. Neither directly nor through animations.

Upvotes: 3

Related Questions