Improve settings, sidebars

This commit is contained in:
Christoph Hagen
2024-12-04 22:54:05 +01:00
parent b3cc4a57db
commit c3309197c0
36 changed files with 968 additions and 426 deletions

View File

@@ -0,0 +1,17 @@
import Foundation
final class PostSettings: ObservableObject {
/// The number of posts to show in a single page of the news feed
@Published
var postsPerPage: Int
/// The maximum width of the main content
@Published
var contentWidth: CGFloat
init(postsPerPage: Int, contentWidth: CGFloat) {
self.postsPerPage = postsPerPage
self.contentWidth = contentWidth
}
}