Put the limit of the five tournaments to 2 in debug

multistore
Laurent 1 year ago
parent cd2fd1f254
commit 0f1b29c5c4
  1. 40
      PadelClub/Views/Navigation/Toolbox/APICallsListView.swift
  2. 4
      PadelClub/Views/Subscription/StoreItem.swift

@ -0,0 +1,40 @@
//
// APICallsView.swift
// PadelClub
//
// Created by Laurent Morvillier on 27/05/2024.
//
import SwiftUI
import LeStorage
struct APICallsListView: View {
@State var collections: [String] = []
var body: some View {
List {
ForEach(self.collections) { name in
NavigationLink(name) {
}
}
}.onAppear {
self.collections = Store.main.collectionNames()
}
}
}
struct APICallsView: View {
var body: some View {
}
}
#Preview {
APICallsListView()
}

@ -12,7 +12,11 @@ enum StoreItem: String, Identifiable, CaseIterable {
case fivePerMonth = "app.padelclub.tournament.subscription.five.per.month" case fivePerMonth = "app.padelclub.tournament.subscription.five.per.month"
case unit = "app.padelclub.tournament.unit" case unit = "app.padelclub.tournament.unit"
#if DEBUG
static let five: Int = 2 static let five: Int = 2
#else
static let five: Int = 5
#endif
var id: String { return self.rawValue } var id: String { return self.rawValue }

Loading…
Cancel
Save