Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Threema/Threema/SharedUI/   (Social Medium ©)  Datei vom 26.9.2026 mit Größe 1 kB image not shown  

Quelle  DebugInfoTableViewCell.swift   Sprache: JAVA

 

import UIKit

/// Show debug info in a text view
final class DebugInfoTableViewCell: ThemedCodeTableViewCell {
    
    var debugText: String? {
        didSet {
            debugTextView.text = debugText
        }
    }
    
    private lazy var debugTextView: UITextView = {
        let textView = UITextView()
        
        textView.isScrollEnabled = false
        textView.isEditable = false
        
        return textView
    }()
    
    override func configureCell() {
        super.configureCell()

        selectionStyle = .none
        
        directionalLayoutMargins = NSDirectionalEdgeInsets(
            top: 5,
            leading: 5,
            bottom: 5,
            trailing: 5
        )
        
        contentView.addSubview(debugTextView)
        debugTextView.translatesAutoresizingMaskIntoConstraints = false
        NSLayoutConstraint.activate([
            debugTextView.topAnchor.constraint(equalTo: contentView.layoutMarginsGuide.topAnchor),
            debugTextView.leadingAnchor.constraint(equalTo: contentView.layoutMarginsGuide.leadingAnchor),
            debugTextView.bottomAnchor.constraint(equalTo: contentView.layoutMarginsGuide.bottomAnchor),
            debugTextView.trailingAnchor.constraint(equalTo: contentView.layoutMarginsGuide.trailingAnchor),
        ])
    }
    
    override func updateColors() {
        super.updateColors()
        
        debugTextView.backgroundColor = .secondarySystemGroupedBackground
    }
}

// MARK: - Reusable

extension DebugInfoTableViewCell: Reusable { }

Messung
CHZG
859810094

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover


Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.