diff options
Diffstat (limited to 'ios')
| -rw-r--r-- | ios/MullvadVPN/CustomSwitch.swift | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/ios/MullvadVPN/CustomSwitch.swift b/ios/MullvadVPN/CustomSwitch.swift index 7b3430806c..0172441489 100644 --- a/ios/MullvadVPN/CustomSwitch.swift +++ b/ios/MullvadVPN/CustomSwitch.swift @@ -60,13 +60,6 @@ class CustomSwitch: UISwitch { } @objc private func valueChanged(_ sender: Any) { - if #available(iOS 13, *) { - updateThumbColor(isOn: isOn, animated: true) - } else { - // Wait for animations to finish before changing the thumb color to prevent the jumpy behaviour. - CATransaction.setCompletionBlock { - self.updateThumbColor(isOn: self.isOn, animated: false) - } - } + updateThumbColor(isOn: isOn, animated: true) } } |
