Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


Quellverzeichnis  DoNotDisturbViewController+Cells.swift   Interaktion und
PortierbarkeitJAVA

 

extension DoNotDisturbViewController {
    
    final class ActiveDNDInfoCell: ThemedCodeTableViewCell, Reusable {
        override func configureCell() {
            super.configureCell()
            
            selectionStyle = .none
            separatorInset = .zero
        }
    }
    
    final class TurnOffDNDButtonCell: ThemedCodeTableViewCell, Reusable {
        override func configureCell() {
            super.configureCell()
            
            accessibilityTraits.insert(.button)
            textLabel?.textAlignment = .center
            textLabel?.textColor = .systemRed
        }
    }
    
    final class PeriodButtonCell: ThemedCodeTableViewCell, Reusable {
        override func configureCell() {
            super.configureCell()
            
            textLabel?.textColor = .label
            
            accessibilityTraits.insert(.button)
        }
    }
    
    final class NotifyWhenMentionedSettingCell: ThemedCodeTableViewCell, Reusable {
        /// Set initial state
        var isOn: Bool {
            set {
                switchControl.isOn = newValue
            }
            get {
                switchControl.isOn
            }
        }
        
        /// Called whenever the switch changes values
        var valueDidChange: ((Bool) -> Void)?
        
        private let switchControl = UISwitch()
        
        override func configureCell() {
            super.configureCell()
            
            selectionStyle = .none
            accessoryView = switchControl
            
            switchControl.addTarget(self, action: #selector(switchDidChange(sender:)), for: .touchUpInside)
        }
        
        override func prepareForReuse() {
            super.prepareForReuse()
            
            valueDidChange = nil
        }
        
        @objc private func switchDidChange(sender: UISwitch) {
            valueDidChange?(sender.isOn)
        }
    }
    
    final class NotificationPlaySoundSettingCell: ThemedCodeTableViewCell, Reusable {
        /// Set initial state
        var isOn: Bool {
            set {
                switchControl.isOn = newValue
            }
            get {
                switchControl.isOn
            }
        }
        
        /// Called whenever the switch changes values
        var valueDidChange: ((Bool) -> Void)?
        
        private let switchControl = UISwitch()
        
        override func configureCell() {
            super.configureCell()
            
            selectionStyle = .none
            accessoryView = switchControl
            
            switchControl.addTarget(self, action: #selector(switchDidChange(sender:)), for: .touchUpInside)
        }
        
        override func prepareForReuse() {
            super.prepareForReuse()
            
            valueDidChange = nil
        }
        
        @objc private func switchDidChange(sender: UISwitch) {
            valueDidChange?(sender.isOn)
        }
    }
}

Messung
CHZG
83949992

¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.5Angebot  (Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können 2026-11-23) ¤

*Eine klare Vorstellung vom Zielzustand







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

letze Version des Elbe Quellennavigators


letze Version des Demonstrationsprogramms Goedel
letze Version des Bille Abgleichprogramms
Version

Jenseits des Üblichen ....

Besucher

Besucher

Statistik
#Sources=1,187,772
#Domains=880,909