diff --git a/RevenueCatUI/CustomerCenter/Views/ManageSubscriptionsView.swift b/RevenueCatUI/CustomerCenter/Views/ManageSubscriptionsView.swift index ad589e7206..8036ead0d3 100644 --- a/RevenueCatUI/CustomerCenter/Views/ManageSubscriptionsView.swift +++ b/RevenueCatUI/CustomerCenter/Views/ManageSubscriptionsView.swift @@ -25,9 +25,6 @@ import SwiftUI @available(visionOS, unavailable) struct ManageSubscriptionsView: View { - @Environment(\.openURL) - var openURL - @StateObject private var viewModel: ManageSubscriptionsViewModel @@ -166,6 +163,8 @@ struct ManageSubscriptionsButtonsView: View { var viewModel: ManageSubscriptionsViewModel @Binding var loadingPath: CustomerCenterConfigData.HelpPath? + @Environment(\.openURL) + var openURL var body: some View { VStack(spacing: 16) { @@ -179,6 +178,12 @@ struct ManageSubscriptionsButtonsView: View { ForEach(filteredPaths, id: \.id) { path in ManageSubscriptionButton(path: path, viewModel: self.viewModel) } + Button("Contact support") { + Task { + openURL(URLUtilities.createMailURL()!) + } + } + .padding() } }