summaryrefslogtreecommitdiffhomepage
path: root/ios
diff options
context:
space:
mode:
authorSajad Vishkai <sajaclvishkai@gmail.com>2022-09-26 12:04:31 +0200
committerAndrej Mihajlov <and@mullvad.net>2022-09-26 16:31:21 +0200
commit0934bd99c0c926838588d5560edb60b74f929bde (patch)
tree140edbd8ccb0cde873bb19cb356ac32b7c56d2e6 /ios
parent1f3bb5e4bebc9bda5ed382f060eb91bbd0c857b6 (diff)
downloadmullvadvpn-0934bd99c0c926838588d5560edb60b74f929bde.tar.xz
mullvadvpn-0934bd99c0c926838588d5560edb60b74f929bde.zip
Update CustomSwitch.swift
Diffstat (limited to 'ios')
-rw-r--r--ios/MullvadVPN/CustomSwitch.swift9
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)
}
}