Update icons, hide page title

This commit is contained in:
Christoph Hagen
2024-12-26 15:01:01 +01:00
parent 1e4682dad1
commit 922ba4ebe7
23 changed files with 290 additions and 53 deletions

View File

@@ -43,6 +43,9 @@ final class LocalizedPage: ObservableObject {
@Published
var linkPreviewDescription: String?
@Published
var hideTitle: Bool
init(content: Content,
urlString: String,
title: String,
@@ -50,7 +53,8 @@ final class LocalizedPage: ObservableObject {
originalUrl: String? = nil,
linkPreviewImage: FileResource? = nil,
linkPreviewTitle: String? = nil,
linkPreviewDescription: String? = nil) {
linkPreviewDescription: String? = nil,
hideTitle: Bool = false) {
self.content = content
self.urlString = urlString
self.title = title
@@ -59,6 +63,7 @@ final class LocalizedPage: ObservableObject {
self.linkPreviewImage = linkPreviewImage
self.linkPreviewTitle = linkPreviewTitle
self.linkPreviewDescription = linkPreviewDescription
self.hideTitle = hideTitle
}
func isValid(urlComponent: String) -> Bool {