forked from shadowfacts/Tusker
Tweak mute button symbol animation
This commit is contained in:
parent
3e28c012d7
commit
68bd9e0bed
|
@ -408,7 +408,7 @@ private class MuteButton: UIControl {
|
||||||
let image = UIImage(systemName: muted ? "speaker.slash.fill" : "speaker.wave.3.fill")!
|
let image = UIImage(systemName: muted ? "speaker.slash.fill" : "speaker.wave.3.fill")!
|
||||||
if animated,
|
if animated,
|
||||||
#available(iOS 17.0, *) {
|
#available(iOS 17.0, *) {
|
||||||
imageView.setSymbolImage(image, contentTransition: .replace.wholeSymbol, options: .speed(5))
|
imageView.setSymbolImage(image, contentTransition: .replace.byLayer)
|
||||||
} else {
|
} else {
|
||||||
imageView.image = image
|
imageView.image = image
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue