yattee/Shared/Subscriptions/SubscriptionsPageButton.swift
Arkadiusz Fal 83dfdd6c0e tvOS filters for all views
Vertical list for trending, popular, playlists, search

Fix #413, #415
2023-04-22 23:39:43 +02:00

23 lines
564 B
Swift

import Defaults
import SwiftUI
struct SubscriptionsPageButton: View {
@Default(.subscriptionsViewPage) private var subscriptionsViewPage
var body: some View {
Button {
subscriptionsViewPage = subscriptionsViewPage.next()
} label: {
Text(subscriptionsViewPage.rawValue.capitalized)
.frame(maxWidth: .infinity)
.font(.caption)
}
}
}
struct SubscriptionsPageButton_Previews: PreviewProvider {
static var previews: some View {
SubscriptionsPageButton()
}
}