add empty subscriptions list message

This commit is contained in:
Satindar Dhillon 2022-10-12 13:16:33 -07:00
parent 8fcbfbbd2e
commit 903e58b3c5

View file

@ -64,6 +64,12 @@ struct SubscriptionsView: View {
)
.buttonStyle(RoundedRectButtonStyle())
}
} else if viewModel.subscriptions.isEmpty {
VStack(alignment: .center) {
Spacer()
Text("You have no current subscriptions.")
Spacer()
}
} else {
Group {
#if os(iOS)