mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-18 16:30:29 +00:00
Increases volume fade-out speed.
This commit is contained in:
parent
38d81c394f
commit
bd1b4b8a9f
@ -760,7 +760,7 @@ class MachineDocument:
|
|||||||
let fadeAnimation = CABasicAnimation(keyPath: "opacity")
|
let fadeAnimation = CABasicAnimation(keyPath: "opacity")
|
||||||
fadeAnimation.fromValue = 1.0
|
fadeAnimation.fromValue = 1.0
|
||||||
fadeAnimation.toValue = 0.0
|
fadeAnimation.toValue = 0.0
|
||||||
fadeAnimation.duration = 0.5
|
fadeAnimation.duration = 0.2
|
||||||
animationFader = ViewFader(view: volumeView)
|
animationFader = ViewFader(view: volumeView)
|
||||||
fadeAnimation.delegate = animationFader
|
fadeAnimation.delegate = animationFader
|
||||||
volumeView.layer?.add(fadeAnimation, forKey: "opacity")
|
volumeView.layer?.add(fadeAnimation, forKey: "opacity")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user