@ -54,7 +54,7 @@
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
buildConfiguration = "Release"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
@ -30,17 +30,14 @@ enum URLs: String, Identifiable {
case appDescription = "https://padelclub.app/download/"
case instagram = "https://www.instagram.com/padelclub.app?igsh=bmticnV5YWhpMnBn"
case appStore = "https://apps.apple.com/app/padel-club/id6484163558"
case eula = "https://www.apple.com/legal/internet-services/itunes/dev/stdeula/"
case privacy = "https://padelclub.app/terms-of-use"
var id: String { return self.rawValue }
var url: URL {
return URL(string: self.rawValue)!
}
static func sitePage(component: String) -> String {
return "\(URLs.main.rawValue)\(component)"
enum PageLink: String, Identifiable, CaseIterable {
@ -187,6 +187,14 @@ struct ToolboxView: View {
Section {
Link(destination: URLs.privacy.url) {
Text("Politique de confidentialité")
Link(destination: URLs.eula.url) {
Text("Contrat d'utilisation")
.overlay(alignment: .bottom) {
if didResetApiCalls {
@ -162,7 +162,6 @@ struct SubscriptionView: View {
.buttonStyle(.borderedProminent)
.tint(.orange)
.listRowBackground(Color.clear)
} footer: {
if product.item.isConsumable == false {
SubscriptionFooterView()
@ -187,14 +186,6 @@ struct SubscriptionView: View {
self._restore()
}.isLoading(self.isRestoring)
ToolbarItem(placement: .bottomBar) {
Button("Conditions d'utilisation") {
if let url = URL(string: URLs.sitePage(component: "terms-of-use/")) {
UIApplication.shared.open(url, options: [:], completionHandler: nil)
// .toolbar {
@ -272,6 +263,10 @@ fileprivate struct ProductsSectionView: View {
} header: {
Text("Sélectionnez une offre").foregroundStyle(Color(white: 0.8))
let message = "Consulter notre [politique de confidentialité](\(URLs.privacy.rawValue)) et le [contrat d'utilisation](\(URLs.eula.rawValue)) de Padel Club."
Text(.init(message))
.foregroundStyle(.white)
@ -142,10 +142,11 @@ struct UserCreationFormView: View {
Toggle(isOn: self.$dataCollectAuthorized) {