Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Gimp/menus/   (Gimp Bildeditor Version 3.2.0©)  Datei vom 14.2.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
979910098

¤ Dauer der Verarbeitung: 0.0 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland