1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-15 06:40:32 +05:30

Fix sign in required view text layout

This commit is contained in:
Arkadiusz Fal 2022-06-26 12:51:00 +02:00
parent 77381b2dd8
commit 05f1c0b6c8
2 changed files with 9 additions and 3 deletions

View File

@ -54,7 +54,7 @@ struct SignInRequiredView<Content: View>: View {
OpenSettingsButton() OpenSettingsButton()
#endif #endif
} }
.frame(minWidth: 0, maxWidth: .infinity, alignment: .center) .frame(minWidth: 0, maxWidth: .infinity, minHeight: 0, maxHeight: .infinity, alignment: .center)
} }
} }
@ -65,7 +65,6 @@ struct SignInRequiredView_Previews: PreviewProvider {
Text("Only when signed in") Text("Only when signed in")
} }
} }
.environmentObject(PlayerModel()) .injectFixtureEnvironmentObjects()
.environmentObject(InvidiousAPI())
} }
} }

View File

@ -79,3 +79,10 @@ struct SubscriptionsView: View {
} }
} }
} }
struct SubscriptonsView_Previews: PreviewProvider {
static var previews: some View {
SubscriptionsView()
.injectFixtureEnvironmentObjects()
}
}