Fix compiling for visionOS

This commit is contained in:
Shadowfacts 2024-12-15 17:07:38 -05:00
parent adaf8dc217
commit a68d2ce952
1 changed files with 2 additions and 6 deletions

View File

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