diff --git a/RevenueCatUI/CustomerCenter/Views/CustomerCenterView.swift b/RevenueCatUI/CustomerCenter/Views/CustomerCenterView.swift index f1c6f7c9a2..db2b9f68cc 100644 --- a/RevenueCatUI/CustomerCenter/Views/CustomerCenterView.swift +++ b/RevenueCatUI/CustomerCenter/Views/CustomerCenterView.swift @@ -18,9 +18,17 @@ import SwiftUI #if os(iOS) -/// Warning: This is currently in beta and subject to change. +/// Use the Customer Center in your app to help your customers manage common support tasks. /// -/// A SwiftUI view for displaying a customer support common tasks +/// Customer Center is a self-service UI that can be added to your app to help +/// your customers manage their subscriptions on their own. With it, you can prevent +/// churn with pre-emptive promotional offers, capture actionable customer data with +/// exit feedback prompts, and lower support volumes for common inquiries — all +/// without any help from your support team. +/// +/// The `CustomerCenterView` can be used to integrate the Customer Center directly in your app with SwiftUI. +/// +/// For more information, see the [Customer Center docs](https://www.revenuecat.com/docs/tools/customer-center). @available(iOS 15.0, *) @available(macOS, unavailable) @available(tvOS, unavailable) @@ -38,7 +46,7 @@ public struct CustomerCenterView: View { /// Create a view to handle common customer support tasks /// - Parameters: /// - customerCenterActionHandler: An optional `CustomerCenterActionHandler` to handle actions - /// from the customer center. + /// from the Customer Center. public init(customerCenterActionHandler: CustomerCenterActionHandler? = nil) { self.init(customerCenterActionHandler: customerCenterActionHandler, mode: .default) } @@ -46,7 +54,7 @@ public struct CustomerCenterView: View { /// Create a view to handle common customer support tasks /// - Parameters: /// - customerCenterActionHandler: An optional `CustomerCenterActionHandler` to handle actions - /// from the customer center. + /// from the Customer Center. init(customerCenterActionHandler: CustomerCenterActionHandler? = nil, mode: CustomerCenterPresentationMode) { self._viewModel = .init(wrappedValue: diff --git a/RevenueCatUI/CustomerCenter/Views/UIKit Compatibility/CustomerCenterViewController.swift b/RevenueCatUI/CustomerCenter/Views/UIKit Compatibility/CustomerCenterViewController.swift index a842ae3637..539017d232 100644 --- a/RevenueCatUI/CustomerCenter/Views/UIKit Compatibility/CustomerCenterViewController.swift +++ b/RevenueCatUI/CustomerCenter/Views/UIKit Compatibility/CustomerCenterViewController.swift @@ -16,7 +16,17 @@ import SwiftUI #if canImport(UIKit) && os(iOS) -/// A UIKit ViewController for displaying a customer support common tasks +/// Use the Customer Center in your app to help your customers manage common support tasks. +/// +/// Customer Center is a self-service UI that can be added to your app to help +/// your customers manage their subscriptions on their own. With it, you can prevent +/// churn with pre-emptive promotional offers, capture actionable customer data with +/// exit feedback prompts, and lower support volumes for common inquiries — all +/// without any help from your support team. +/// +/// The `CustomerCenterViewController` can be used to integrate the Customer Center directly in your app with UIKit. +/// +/// For more information, see the [Customer Center docs](https://www.revenuecat.com/docs/tools/customer-center). @available(iOS 15.0, *) @available(macOS, unavailable) @available(tvOS, unavailable) diff --git a/Sources/CustomerCenter/CustomerCenterPresentationMode.swift b/Sources/CustomerCenter/CustomerCenterPresentationMode.swift index 1a2b71147e..ee38af6210 100644 --- a/Sources/CustomerCenter/CustomerCenterPresentationMode.swift +++ b/Sources/CustomerCenter/CustomerCenterPresentationMode.swift @@ -18,10 +18,10 @@ import Foundation /// Presentation options to use with the [presentCustomerCenter](x-source-tag://presentCustomerCenter) View modifiers. public enum CustomerCenterPresentationMode { - /// Customer center presented using SwiftUI's `.sheet`. + /// Customer Center presented using SwiftUI's `.sheet`. case sheet - /// Customer center presented using SwiftUI's `.fullScreenCover`. + /// Customer Center presented using SwiftUI's `.fullScreenCover`. case fullScreen } diff --git a/Sources/Purchasing/Purchases/Purchases.swift b/Sources/Purchasing/Purchases/Purchases.swift index efcf8136bb..ca02bcb861 100644 --- a/Sources/Purchasing/Purchases/Purchases.swift +++ b/Sources/Purchasing/Purchases/Purchases.swift @@ -1279,7 +1279,7 @@ public extension Purchases { } } - /// Used by `RevenueCatUI` to download customer center data + /// Used by `RevenueCatUI` to download Customer Center data func loadCustomerCenter() async throws -> CustomerCenterConfigData { let response = try await Async.call { completion in self.backend.customerCenterConfig.getCustomerCenterConfig(appUserID: self.appUserID,