Save automatically, improve mocks
This commit is contained in:
@ -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)
|
||||
|
@ -103,5 +103,5 @@ extension PostDetailView: MainContentView {
|
||||
|
||||
|
||||
#Preview(traits: .fixedLayout(width: 270, height: 500)) {
|
||||
PostDetailView(post: .fullMock)
|
||||
PostDetailView(post: .Mock.hike2)
|
||||
}
|
||||
|
@ -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]))
|
||||
}
|
||||
|
Reference in New Issue
Block a user