Fix compiling for visionOS

This commit is contained in:
Shadowfacts 2024-12-15 17:07:38 -05:00
parent adaf8dc217
commit a68d2ce952

View File

@ -15,15 +15,11 @@ struct TrendingLinkCardView: View {
let card: Card
private var imageURL: URL? {
if let image = card.image {
URL(image)
} else {
nil
}
card.image
}
private var descriptionText: String {
var converter = TextConverter(configuration: .init(insertNewlines: false))
let converter = TextConverter(configuration: .init(insertNewlines: false))
return converter.convert(html: card.description)
}