forked from shadowfacts/Tusker
Fix compiling for visionOS
This commit is contained in:
parent
adaf8dc217
commit
a68d2ce952
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue