mirror of
https://github.com/yattee/yattee.git
synced 2024-11-12 17:18:22 +00:00
23 lines
565 B
Swift
23 lines
565 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(.caption2)
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
struct SubscriptionsPageButton_Previews: PreviewProvider {
|
||
|
static var previews: some View {
|
||
|
SubscriptionsPageButton()
|
||
|
}
|
||
|
}
|