A backport of UIHostingConfiguration
for iOS 14.0+.
import UIHostingConfigurationBackport
cell.contentConfiguration = UIHostingConfigurationBackport {
HStack {
Image(systemName: "star").foregroundStyle(.purple)
Text("Favorites")
Spacer()
}
}
.package(url: "https://github.com/woxtu/UIHostingConfigurationBackport.git", from: "0.1.0")
Licensed under the MIT license.