Improve tag and images view, save website settings
This commit is contained in:
@ -15,6 +15,7 @@ extension Content {
|
||||
private static let dbPath = FileManager.default.documentDirectory.appendingPathComponent("db").path()
|
||||
|
||||
static let mock: Content = Content(
|
||||
websiteData: .mock,
|
||||
posts: [.empty, .mock, .fullMock],
|
||||
pages: [.empty],
|
||||
tags: [.hiking, .mountains, .nature, .sports],
|
||||
|
25
CHDataManagement/Preview Content/WebsiteData+Mock.swift
Normal file
25
CHDataManagement/Preview Content/WebsiteData+Mock.swift
Normal file
@ -0,0 +1,25 @@
|
||||
import Foundation
|
||||
|
||||
extension WebsiteData {
|
||||
|
||||
static let mock: WebsiteData = .init(
|
||||
german: .german,
|
||||
english: .english)
|
||||
}
|
||||
|
||||
extension LocalizedWebsiteData {
|
||||
|
||||
static var german: LocalizedWebsiteData {
|
||||
.init(
|
||||
title: "Titel",
|
||||
description: "Beschreibung",
|
||||
iconDescription: "Icon")
|
||||
}
|
||||
|
||||
static var english: LocalizedWebsiteData {
|
||||
.init(
|
||||
title: "A Title",
|
||||
description: "Description",
|
||||
iconDescription: "Icon")
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user