It just means the waiting should be cancelled
Signed-off-by: Roopesh Chander <roop@roopc.net>
DispatchQueue.main.async { [weak statusSwitch] in
guard let statusSwitch = statusSwitch else { return }
statusSwitch.isOn = !(status == .deactivating || status == .inactive)
- statusSwitch.isUserInteractionEnabled = (status == .inactive || status == .active)
+ statusSwitch.isUserInteractionEnabled = (status == .inactive || status == .active || status == .waiting)
}
textLabel?.textColor = (status == .active || status == .inactive) ? UIColor.black : UIColor.gray
}
DispatchQueue.main.async { [weak statusSwitch, weak busyIndicator] in
guard let statusSwitch = statusSwitch, let busyIndicator = busyIndicator else { return }
statusSwitch.isOn = !(status == .deactivating || status == .inactive)
- statusSwitch.isUserInteractionEnabled = (status == .inactive || status == .active)
+ statusSwitch.isUserInteractionEnabled = (status == .inactive || status == .active || status == .waiting)
if (status == .inactive || status == .active) {
busyIndicator.stopAnimating()
} else {