From 7078e5c43559bda79b7b8b0564fff837a7f7c8e1 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Sat, 5 Oct 2024 10:18:57 +0200 Subject: [PATCH] Unrestrict previews --- Passepartout/Library/Sources/AppUI/Mock/Mock.swift | 6 +++++- .../AppUI/Views/Modules/OpenVPNView+Credentials.swift | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Passepartout/Library/Sources/AppUI/Mock/Mock.swift b/Passepartout/Library/Sources/AppUI/Mock/Mock.swift index ca3368ae..e2ef88d8 100644 --- a/Passepartout/Library/Sources/AppUI/Mock/Mock.swift +++ b/Passepartout/Library/Sources/AppUI/Mock/Mock.swift @@ -41,7 +41,11 @@ extension AppContext { iapManager: IAPManager( customUserLevel: nil, receiptReader: MockReceiptReader(), - unrestrictedFeatures: [.sharing], + unrestrictedFeatures: [ + .interactiveLogin, + .onDemand, + .sharing + ], productsAtBuild: { _ in [] } diff --git a/Passepartout/Library/Sources/AppUI/Views/Modules/OpenVPNView+Credentials.swift b/Passepartout/Library/Sources/AppUI/Views/Modules/OpenVPNView+Credentials.swift index 46ec1d84..ecad9426 100644 --- a/Passepartout/Library/Sources/AppUI/Views/Modules/OpenVPNView+Credentials.swift +++ b/Passepartout/Library/Sources/AppUI/Views/Modules/OpenVPNView+Credentials.swift @@ -157,7 +157,7 @@ private extension OpenVPNView.CredentialsView { var credentials: OpenVPN.Credentials? @State - var isInteractive = false + var isInteractive = true return NavigationStack { OpenVPNView.CredentialsView(