Skip to content

Commit

Permalink
Hide mode from public init in CustomerCenterView (#4563)
Browse files Browse the repository at this point in the history
  • Loading branch information
vegaro authored Dec 10, 2024
1 parent 451b8cf commit a55a21d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions RevenueCatUI/CustomerCenter/Views/CustomerCenterView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a55a21d

Please sign in to comment.