Save automatically, improve mocks

This commit is contained in:
Christoph Hagen
2025-02-05 12:24:33 +01:00
parent d41c54d174
commit 5abe6e1a9f
55 changed files with 701 additions and 381 deletions

View File

@ -34,10 +34,10 @@ extension PostContentView: MainContentView {
#Preview(traits: .fixedLayout(width: 450, height: 600)) {
List {
PostContentView(post: .fullMock)
PostContentView(post: .Mock.hike2)
.listRowSeparator(.hidden)
.environment(\.language, ContentLanguage.german)
PostContentView(post: .mock)
PostContentView(post: .Mock.hike)
.listRowSeparator(.hidden)
}
.environmentObject(Content.mock)

View File

@ -103,5 +103,5 @@ extension PostDetailView: MainContentView {
#Preview(traits: .fixedLayout(width: 270, height: 500)) {
PostDetailView(post: .fullMock)
PostDetailView(post: .Mock.hike2)
}

View File

@ -83,6 +83,6 @@ struct TagSelectionView: View {
#Preview {
TagSelectionView(
presented: .constant(true),
selected: .constant([.hiking, .nature]),
tags: .constant([.sports, .mock]))
selected: .constant([.Mock.hiking, .Mock.nature]),
tags: .constant([.Mock.sports, .Mock.electronics]))
}