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
|
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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue