diff --git a/RevenueCatUI/CustomerCenter/Views/CustomerCenterView.swift b/RevenueCatUI/CustomerCenter/Views/CustomerCenterView.swift index 7fe4c39b4b..c771502b41 100644 --- a/RevenueCatUI/CustomerCenter/Views/CustomerCenterView.swift +++ b/RevenueCatUI/CustomerCenter/Views/CustomerCenterView.swift @@ -39,8 +39,16 @@ public struct CustomerCenterView: View { /// - Parameters: /// - customerCenterActionHandler: An optional `CustomerCenterActionHandler` to handle actions /// from the customer center. - public init(customerCenterActionHandler: CustomerCenterActionHandler? = nil, - mode: CustomerCenterPresentationMode = CustomerCenterPresentationMode.default) { + public init(customerCenterActionHandler: CustomerCenterActionHandler? = nil) { + self.init(customerCenterActionHandler: customerCenterActionHandler, mode: .default) + } + + /// Create a view to handle common customer support tasks + /// - Parameters: + /// - customerCenterActionHandler: An optional `CustomerCenterActionHandler` to handle actions + /// from the customer center. + init(customerCenterActionHandler: CustomerCenterActionHandler? = nil, + mode: CustomerCenterPresentationMode) { self._viewModel = .init(wrappedValue: CustomerCenterViewModel(customerCenterActionHandler: customerCenterActionHandler)) self.mode = mode