mirror of
https://github.com/metabolist/metatext.git
synced 2025-01-03 18:48:40 +00:00
Wrap previews in environment check
This commit is contained in:
parent
347eb1d516
commit
d2b12e0b99
3 changed files with 6 additions and 0 deletions
|
@ -47,8 +47,10 @@ struct PostingReadingPreferencesView: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if DEBUG
|
||||||
struct PostingReadingPreferencesViewView_Previews: PreviewProvider {
|
struct PostingReadingPreferencesViewView_Previews: PreviewProvider {
|
||||||
static var previews: some View {
|
static var previews: some View {
|
||||||
PostingReadingPreferencesView(viewModel: .development)
|
PostingReadingPreferencesView(viewModel: .development)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
|
@ -17,8 +17,10 @@ struct PreferencesView: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if DEBUG
|
||||||
struct PreferencesView_Previews: PreviewProvider {
|
struct PreferencesView_Previews: PreviewProvider {
|
||||||
static var previews: some View {
|
static var previews: some View {
|
||||||
PreferencesView(viewModel: .development)
|
PreferencesView(viewModel: .development)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
|
@ -66,9 +66,11 @@ struct IdentitiesView: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if DEBUG
|
||||||
struct IdentitiesView_Previews: PreviewProvider {
|
struct IdentitiesView_Previews: PreviewProvider {
|
||||||
static var previews: some View {
|
static var previews: some View {
|
||||||
IdentitiesView(viewModel: .development)
|
IdentitiesView(viewModel: .development)
|
||||||
.environmentObject(RootViewModel.development)
|
.environmentObject(RootViewModel.development)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue