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