Emoji in ListItems eines UICollectionViews

Ziel : Anzeige eines Emojis in einem ListItem als Image

Falscher Ansatz : Emojis in Image umwandeln und dem image-Property der content-Configuration zuweisen.

Richtiger Ansatz: Ein Emoji ist ein Text! Also wird das Emoji dem content.text zugewiesen und der Text des Labels dem content.secondaryText. 

           var content = UIListContentConfiguration.valueCell()
            content.text = "😀"
            content.secondaryText = String(describing: emoji.category)
 
SwiftUI Document App mit Paketdateien
UISplitViewController mit drei Spalten im SceneDel...

By accepting you will be accessing a service provided by a third-party external to http://h-mayer.de/