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  SearchContentConfigurations.swift   Sprache: JAVA

 

import UIKit

/// Generate content configurations for search
enum SearchContentConfigurations {
    
    // MARK: - Header
    
    static let contentConfigurationSectionHeaderIdentifier = "contentConfigurationSectionHeaderIdentifier"
    
    static func contentConfigurationForSectionHeader(with localizedTitle: String) -> UIListContentConfiguration {
        var content = UIListContentConfiguration.prominentInsetGroupedHeader()
        
        content.text = localizedTitle
        
        // As we misuse the prominent inset group header style for a grouped table view we want the correct insets
        content.axesPreservingSuperviewLayoutMargins = .horizontal
                
        return content
    }
    
    // MARK: - Cells
    
    static let contentConfigurationTokenCellIdentifier = "contentConfigurationTokenCellIdentifier"
    static let contentConfigurationProgressCellIdentifier = "contentConfigurationProgressCellIdentifier"

    static func contentConfiguration(for token: GlobalSearchMessageToken) -> UIListContentConfiguration {
        var content = UIListContentConfiguration.cell()
        
        content.text = token.title
        content.image = token.icon
        
        let mediumScaleSymbolConfiguration = UIImage.SymbolConfiguration(scale: .medium)
        let mediumWeightSymbolConfiguration = UIImage.SymbolConfiguration(weight: .medium)
        content.imageProperties.preferredSymbolConfiguration = mediumScaleSymbolConfiguration.applying(
            mediumWeightSymbolConfiguration
        )
        
        return content
    }
}

Messung
CHZG
849710093

¤ Dauer der Verarbeitung: 0.2 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.