Colors, pages, post links

This commit is contained in:
Christoph Hagen
2024-11-20 13:53:44 +01:00
parent 943d8d962b
commit 8ae2a237cc
19 changed files with 466 additions and 46 deletions

View File

@@ -1,4 +1,5 @@
import Foundation
import SwiftUI
/**
A localized page contains the page content of a single language,
@@ -69,4 +70,16 @@ final class LocalizedPage: ObservableObject {
self.externalFiles = externalFiles
self.requiredFiles = requiredFiles
}
@MainActor
func editableTitle() -> Binding<String> {
Binding(
get: {
self.title
},
set: { newValue in
self.title = newValue
}
)
}
}