18 lines
412 B
Swift
18 lines
412 B
Swift
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
|
|
}
|
|
}
|