mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-22 14:13:45 +00:00
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
16 lines
448 B
Swift
16 lines
448 B
Swift
final class SettingsTableViewiCloudSwitchCell: SettingsTableViewDetailedSwitchCell {
|
|
|
|
@objc
|
|
func updateWithSynchronizationState(_ state: SynchronizationManagerState) {
|
|
guard state.isAvailable else {
|
|
accessoryView = nil
|
|
accessoryType = .detailButton
|
|
return
|
|
}
|
|
accessoryView = switchButton
|
|
detailTextLabel?.text = state.error?.localizedDescription
|
|
setOn(state.isOn, animated: true)
|
|
setNeedsLayout()
|
|
}
|
|
}
|