Skip to content

Commit

Permalink
Add contact support button
Browse files Browse the repository at this point in the history
  • Loading branch information
vegaro committed Jul 6, 2024
1 parent 48485ae commit 99ecb10
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions RevenueCatUI/CustomerCenter/Views/ManageSubscriptionsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ import SwiftUI
@available(visionOS, unavailable)
struct ManageSubscriptionsView: View {

@Environment(\.openURL)
var openURL

@StateObject
private var viewModel: ManageSubscriptionsViewModel

Expand Down Expand Up @@ -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) {
Expand All @@ -179,6 +178,12 @@ struct ManageSubscriptionsButtonsView: View {
ForEach(filteredPaths, id: \.id) { path in
ManageSubscriptionButton(path: path, viewModel: viewModel)
}
Button("Contact support") {
Task {
openURL(URLUtilities.createMailURL()!)
}
}
.padding()
}
}

Expand Down

0 comments on commit 99ecb10

Please sign in to comment.