Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add contact support button
Browse files Browse the repository at this point in the history
vegaro committed Jul 10, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent d343c96 commit 4aeabf3
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
@@ -25,9 +25,6 @@ import SwiftUI
@available(visionOS, unavailable)
struct ManageSubscriptionsView: View {

@Environment(\.openURL)
var openURL

@StateObject
private var viewModel: ManageSubscriptionsViewModel

@@ -184,6 +181,8 @@ struct ManageSubscriptionsButtonsView: View {
var viewModel: ManageSubscriptionsViewModel
@Binding
var loadingPath: CustomerCenterConfigData.HelpPath?
@Environment(\.openURL)
var openURL

var body: some View {
VStack(spacing: 16) {
@@ -197,6 +196,12 @@ struct ManageSubscriptionsButtonsView: View {
ForEach(filteredPaths, id: \.id) { path in
ManageSubscriptionButton(path: path, viewModel: self.viewModel)
}
Button("Contact support") {
Task {
openURL(URLUtilities.createMailURL()!)
}
}
.padding()
}
}

0 comments on commit 4aeabf3

Please sign in to comment.