Previews environment objects fixtures

This commit is contained in:
Arkadiusz Fal
2021-09-29 13:45:00 +02:00
parent 29e042a8bf
commit ef5c75a2bc
18 changed files with 72 additions and 39 deletions

View File

@@ -44,9 +44,11 @@ struct SignInRequiredView<Content: View>: View {
.font(.title3)
.padding(.vertical)
if instances.isEmpty {
openSettingsButton
}
#if !os(tvOS)
if instances.isEmpty {
openSettingsButton
}
#endif
#if os(tvOS)
openSettingsButton
@@ -73,5 +75,6 @@ struct SignInRequiredView_Previews: PreviewProvider {
SignInRequiredView(title: "Subscriptions") {
Text("Only when signed in")
}
.environmentObject(InvidiousAPI())
}
}